glBindTexture question

Hey all,

When I use glBindTexture to select a texture I’ve previously loaded, does that restore the blend modes and other states (bilinear, clamp, etc) as well?

So if I want to specify blend modes on a per texture basis (texture A is always GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) do I set that when I’m initially loading the texture, or do I have to call it again every time I want to use the texture?


Texture settings are stored with the texture object. So you don’t need to reset clamp/repeat or modulate/replace/decal per use.

But blend mode isn’t directly texture related - it applies to nontextured drawing as well. So (AFAIK) blend state is NOT stored with the texture object, and you WILL have to set it per use.