adding note to glTexImage2D exception for non-power of 2 textures. Re: [pygame] compiled exe in pygame/pyopengl working locally but not elsewhere
"René Dudfield" <[email protected]>
| Newsgroups | gmane.comp.python.opengl.devel,gmane.comp.python.pygame |
|---|---|
| Message-ID | <[email protected]> |
hi, It would almost even be worth it adding a note about this FAQ into the exception for glTexImage2D - or add a warning to a log somewhere perhaps? cu, [snip] > > > It gives me the following error: > > > Unhandled exception in thread started by > > > Traceback (most recent call last): > > > File "wxSolOutWindow.py", line 637, in Run > > > File "wxSolOutWindow.py", line 152, in Inited > > > File "wxSolOutWindow.py", line 241, in ObjMain > > > File "c:\Documents and > Settings\$USER\Desktop\2\dist\PyOpenGL-3.0.0b1-py2.5.egg\OpenGL\wrapper.py", > line 1624 in __call__ > > > File "c:\Documents and > Settings\$USER\Desktop\2\dist\PyOpenGL-3.0.0b1-py2.5.egg\OpenGL\wrapper.py", > line 924 in wrapperCall > > > OpenGL.error.GLError: GLError( > > > err = 1281, > > > description = 'invalid value', > > > baseOperation = glTexImage2D, > > > pyArgs = [ > > > GL_TEXTURE_2D, > > > 0, > > > GL_RGBA, > > > 750, > > > 750, > > > 0, > > > GL_RGBA, > > > GL_UNSIGNED_BYTE, > > > '\x00\x00\x00\xff\x00\x00\x00\xff\x00... > > > ], > > > cArgs = [ > > > GL_TEXTURE_2D, > > > 0, > > > GL_RGBA, > > > 750, > > > 750, > > > 0, > > > GL_RGBA, > > > GL_UNSIGNED_BYTE, > > > '\x00\x00\x00\xff\x00\x00\x00\xff\x00... > > > ], > > > cArguments = ( > > > GL_TEXTURE_2D, > > > 0, > > > GL_RGBA, > > > 750, > > > 750, > > > 0, > > > GL_RGBA, > > > GL_UNSIGNED_BYTE, > > > c_void_p(146210868), > > > ) > > > ) > > > ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ PyOpenGL Homepage http://pyopengl.sourceforge.net