#164 bugs in RawOpengl.tkRedraw()

v3.0.0
open
nobody
Tk (7)
5
2007-05-22
2007-05-22
No

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)?

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks