forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Error in log.txt from pspgl

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
jsharrad



Joined: 20 Oct 2005
Posts: 102

PostPosted: Thu Jul 13, 2006 2:45 am    Post subject: Error in log.txt from pspgl Reply with quote

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
View user's profile Send private message
zilt



Joined: 21 Feb 2006
Posts: 45
Location: Ontario, Canada

PostPosted: Thu Jul 13, 2006 3:13 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
jsharrad



Joined: 20 Oct 2005
Posts: 102

PostPosted: Thu Jul 13, 2006 3:41 am    Post subject: Reply with quote

Aha! Thanks, that was it. The 3 in there is fine but somehow my texture got saved as 260x256. /bonkself
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
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