[ pyopengl-Bugs-1723472 ] bugs in RawOpengl.tkRedraw()

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.python.opengl.devel
Message-ID <[email protected]>
Bugs item #1723472, was opened at 2007-05-22 15:55
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105988&aid=1723472&group_id=5988

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Tk
Group: v3.0.0
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Aleksandar B. Samardzic (asamardzic)
Assigned to: Nobody/Anonymous (nobody)
Summary: bugs in RawOpengl.tkRedraw()

Initial Comment:
While trying to use RawOpengl widget (don't need Opengl widget bells and whistles), I found 2 errors in above mentioned function, in file OpenGL/Tk/__init__.py:

1. Line 205:
		_mode = glGetDoublev(GL_MATRIX_MODE)
should be:
		_mode = glGetIntegerv(GL_MATRIX_MODE)
(reverting to original matrix mode trough glMatrixMode() call several lines below is now throwing an exception)

2. Before line 214 (or somewhere around, the sequence of statements is somewhat tricky):
				glPopMatrix()
following line should be inserted:
				glMatrixMode(GL_PROJECTION)
(this way, if my rendering code is say leaving model view matrix mode as current matrix mode, and is manipulating properly with model view matrix stack, so that the stack is empty after my rendering code completed, a stack underflow exception is thrown)


Finally - I know this is not proper place for asking questions, but: where to find PyOpenGL 3 CVS (I wasn't able to find this code on PyOpenGL Sourceforge CVS repository)?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105988&aid=1723472&group_id=5988

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.