Sign in to follow this  

texture filtering after creation of texture object

This topic is 4844 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 was wondering why everyone indicates what filtering should be used before a texture is loaded, and thought I'd find out why. It appears that if you try to change the filtering parameters after creation of the texture, the texture turns white. However, I haven't been able to find anything in the redbook that says filtering should be set during setup of a texture. Any help?

Share this post


Link to post
Share on other sites
The blue book (see here) mentions no retrictions on when you can call glTexParameter apart from that you can't do it between glBegin and glEnd, so there should be no problem altering the min and mag filters after you've uploaded the tex image to gl.

Share this post


Link to post
Share on other sites
Texture parameters (including filtering) affect the bound texture object. You can change them anytime you want as long as you bind your texture before.

The major issue is that if you set your filtering to mipmap, you'll have to upload all the mipmap levels for your texture to be "complete" and be displayed correctly.

Share this post


Link to post
Share on other sites

This topic is 4844 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this