 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
jsharrad
Joined: 20 Oct 2005 Posts: 102
|
Posted: Thu Jul 13, 2006 2:45 am Post subject: Error in log.txt from pspgl |
|
|
Every time I run my program it runs perfectly and all the textures display yet I keep getting this in ms0:/log.txt
| Code: |
*** GL error 0x0501 in glTexImage2D ***
*** GL error 0x0501 in glTexImage2D ***
|
(yeah, twice every time it's run)
What does it mean and any idea what I can do to fix it? my glTexImage2D(); appears to be correct and it all does display correctly...
| Code: |
glTexImage2D(GL_TEXTURE_2D, 0, 3, textureinfo.Width, textureinfo.Height, 0, GL_RGB, GL_UNSIGNED_BYTE, textureinfo.Data);
|
Any ideas? |
|
| Back to top |
|
 |
zilt
Joined: 21 Feb 2006 Posts: 45 Location: Ontario, Canada
|
Posted: Thu Jul 13, 2006 3:13 am Post subject: |
|
|
A 0x0501 is a GL_INVALID_VALUE error. Most likely it's due to your third param, '3'. It should be one of GL_ALPHA, GL_RGB, GL_RGBA, GL_LUMINANCE, or GL_LUMINANCE_ALPHA - none of which are '3'. It could also be your width or height if there aren't 2^n _________________ "We are dreamers, shapers, singers, and makers. We study the mysteries of laser and circuit, crystal and scanner, holographic demons and invocations of equations. These are the tools we employ and we know... many things." -- Elric, B5 |
|
| Back to top |
|
 |
jsharrad
Joined: 20 Oct 2005 Posts: 102
|
Posted: Thu Jul 13, 2006 3:41 am Post subject: |
|
|
| Aha! Thanks, that was it. The 3 in there is fine but somehow my texture got saved as 260x256. /bonkself |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|