• Advertisement


This topic is now archived and is closed to further replies.

lesson 7 in C++ Builder X

This topic is 5134 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post

Link to post
Share on other sites

  • Advertisement