[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
- To: pygame-users@xxxxxxxx, "PyOpenGL Devel" <pyopengl-devel@xxxxxxxxxxxxxxxxxxxxx>
- Subject: adding note to glTexImage2D exception for non-power of 2 textures. Re: [pygame] compiled exe in pygame/pyopengl working locally but not elsewhere
- From: "René Dudfield" <renesd@xxxxxxxxx>
- Date: Tue, 6 May 2008 16:00:10 +1000
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Tue, 06 May 2008 02:00:19 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=vZWiy0QjMgoFQfx2gT76+Gthc93oFXl2fGwBtJUSQFg=; b=idf5Dzr8VZC0v7DHIqZ7qKSPpr+VIjME3/kla1H8l8zBN8NNiOcwMydfuFol5HqKuyEwIfngwKbFCzM0Z8zMbmAv1EtU6aur+eblrdW1VaqSWn+72DYfNUhvNtwRXx8vOsJ1wavWv9GS052wEoc5j6rxxyDKevHsVM78i3GDX9M=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=e9pFEjghF9MRNx7e1Vh8dKkQfOSuhBHdLzOTKGr7+yvj0MZNSksFeN8FVXtTc0IS8h0Qtzh0bLGNMu93RQ2xc8Ma1oyjthmsquObqKOea+H1Z/nAYRxD3e7kBwgWmG/x9tUXvHA/Y1OgYhIYl8HV9hTjqfGti+BZtKuMzvashT0=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
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),
> > > )
> > > )
> > >