lesson 7 in C++ Builder X
Hi,
When I compile lesson 7 in C++ Builder X the program terminates with a divide by zero exception. After debugging, I have determined that the exception occurs during the call to gluBuild2DMipmaps in LoadGLTextures.
glBindTexture(GL_TEXTURE_2D, texture[2]);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D,
GL_TEXTURE_MIN_FILTER,
GL_LINEAR_MIPMAP_NEAREST);
gluBuild2DMipmaps(GL_TEXTURE_2D, 3,
TextureImage[0]->sizeX,
TextureImage[0]->sizeY,
GL_RGB, GL_UNSIGNED_BYTE,
TextureImage[0]->data);
Does anyone have any ideas how to fix this?
Thanks,
Jason
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement