Jump to content
  • Advertisement
Sign in to follow this  
rcpedersen

GL_SGIS_generate_mipmap + glTexSubImage2D

This topic is 3560 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

I am having trouble getting automatic mipmap generation working when using glTexSubImage2D; I initially get nice mipmaps when allocting but when I replace data with glTexSubImage2D the levels from 1 to N are lost. The SGI extension spec looks ancient so I was hoping someone here has experience with automatic mipmap geneation when data is re-downloaded multiple times?

Share this post


Link to post
Share on other sites
Advertisement
This feature went into core in GL 1.4 so it is no longer an SGI extension. Sounds like what you have is a driver bug.

Share this post


Link to post
Share on other sites
I am using the lastest NVIDIA driver (178.24) on Vista 64 bit - I am able to test this on a Linux distribution later this week; but I am kind of also asking since the *spec* at least the SGI extension is very unclear on what exactly will trigger mipmap generation if new data is downloaded (doesnt even mention downloading new data, just something about touching *edge pixels*)


The OpenGL 3.0 Specification refers to the SGI extension on page 431 but again doesnt clarify which API calls should be made for the mipmaps to be generated.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!