[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

adding note to glTexImage2D exception for non-power of 2 textures. Re: [pygame] compiled exe in pygame/pyopengl working locally but not elsewhere



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