Texture/Image Binding crash.

Aftershock6783
Unregistered
 
Post: #13
OneSadCookie Wrote:from man glTexImage2D
Code:
void glTexImage2D( GLenum target,
                          GLint level,
                          GLint internalformat,
                          GLsizei width,
                          GLsizei height,
                          GLint border,
                          GLenum format,
                          GLenum type,
                          const GLvoid *pixels )
...
Code:
GL_INVALID_VALUE is generated if level is less than 0.

       GL_INVALID_VALUE  may  be generated if level is greater than log2(max),
       where max is the returned value of GL_MAX_TEXTURE_SIZE.

       GL_INVALID_VALUE is generated if internalformat is not 1, 2, 3,  4,  or
       one of the accepted resolution and  symbolic constants.

       GL_INVALID_VALUE  is  generated  if  width  or height is less than 0 or
       greater than 2 + GL_MAX_TEXTURE_SIZE, or if  either  cannot  be  repre-
       sented as 2^k +2 (border) for some integer value of k.

       GL_INVALID_VALUE is generated if border is not 0 or 1.

my guess is that sizeX and sizeY are not powers of two.

That's a very good point. I'l check that out. as for the first part, I found that and was loking into what might be off. all values are correct (tho I'm not sure about the powers of 2 thing. That's actually quite helpful!

Thanks! I'll get back when I find out if that works out or not.
Quote this message in a reply
Post Reply 


Messages In This Thread
Texture/Image Binding crash. - Aftershock6783 - Apr 5, 2005, 01:23 PM
Texture/Image Binding crash. - OneSadCookie - Apr 5, 2005, 01:51 PM
Texture/Image Binding crash. - Aftershock6783 - Apr 5, 2005, 03:09 PM
Texture/Image Binding crash. - OneSadCookie - Apr 5, 2005, 03:23 PM
Texture/Image Binding crash. - Aftershock6783 - Apr 5, 2005, 03:28 PM
Texture/Image Binding crash. - OneSadCookie - Apr 5, 2005, 05:10 PM
Texture/Image Binding crash. - Aftershock6783 - Apr 5, 2005, 05:33 PM
Texture/Image Binding crash. - OneSadCookie - Apr 5, 2005, 05:56 PM
Texture/Image Binding crash. - Aftershock6783 - Apr 5, 2005, 07:48 PM
Texture/Image Binding crash. - OneSadCookie - Apr 5, 2005, 08:08 PM
Texture/Image Binding crash. - Aftershock6783 - Apr 5, 2005, 08:42 PM
Texture/Image Binding crash. - OneSadCookie - Apr 5, 2005, 09:25 PM
Texture/Image Binding crash. - Aftershock6783 - Apr 5, 2005 09:32 PM
Texture/Image Binding crash. - Aftershock6783 - Apr 5, 2005, 09:52 PM
Texture/Image Binding crash. - OneSadCookie - Apr 5, 2005, 09:56 PM
Texture/Image Binding crash. - Aftershock6783 - Apr 5, 2005, 10:05 PM
Texture/Image Binding crash. - OneSadCookie - Apr 5, 2005, 11:25 PM
Texture/Image Binding crash. - Aftershock6783 - Apr 6, 2005, 08:10 AM
Texture/Image Binding crash. - OneSadCookie - Apr 6, 2005, 01:31 PM
Texture/Image Binding crash. - Aftershock6783 - Apr 6, 2005, 01:46 PM
Texture/Image Binding crash. - OneSadCookie - Apr 6, 2005, 01:51 PM
Texture/Image Binding crash. - DanLab - Apr 6, 2005, 02:31 PM
Texture/Image Binding crash. - DanLab - Apr 6, 2005, 02:37 PM
Texture/Image Binding crash. - VolganPoet - May 10, 2005, 03:35 PM
Texture/Image Binding crash. - Puzzler183 - May 10, 2005, 03:46 PM
Texture/Image Binding crash. - w_reade - May 10, 2005, 04:34 PM
Texture/Image Binding crash. - VolganPoet - May 11, 2005, 05:26 PM
Texture/Image Binding crash. - VolganPoet - May 11, 2005, 05:52 PM
Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Suggestions for a physics library for java? Is there a chipmunk binding? aqua_scummm 6 4,885 Dec 12, 2008 12:40 PM
Last Post: aqua_scummm