Jump to content
  • Advertisement
Sign in to follow this  

Nvidia 7600 GS AGP and gluBuild2dMipMaps

This topic is 4135 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, I bought this nvida card, before i had an Ati Radeon 9200. The application that im developing worked without problems on Ati, but now with the new card i have problems in this part: Code: glGenTextures(1, textura_temp); glPixelStorei (GL_UNPACK_ALIGNMENT, 1); glBindTexture(GL_TEXTURE_2D, *textura_temp); GLint internalFormat = channels if (conf_get_ext(EXT_ARB_COMP)) /*check if have the extension*/ { internalFormat = GL_COMPRESSED_RGB_ARB; if channels == FT_ALPHA) { internalFormat = GL_COMPRESSED_RGBA_ARB; } } gluBuild2DMipmaps(GL_TEXTURE_2D, internalFormat, w, h type, GL_UNSIGNED_BYTE, data); It fails on gluBuild, but not for all the textures. The backtrace report show this line: nvoglnt!DrvValidateVersion() (??:??) The texture where the app fails seems normal. JPG 256x 256. The card has the extension and go inside if, if i comment it (if) some textures looks bad but the app works. Someone can help me. Thanks in advance.

Share this post


Link to post
Share on other sites
Advertisement
Well if that code is correct and type in your issue is

gluBuild2DMipmaps(GL_TEXTURE_2D, internalFormat, w, h, type, GL_UNSIGNED_BYTE, data);

You have no , after h

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!