Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
remove some ogl error
but it doesn't resolve any issue
  • Loading branch information
degasus committed Mar 17, 2013
1 parent 7597b8b commit f480697
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp
Expand Up @@ -491,7 +491,9 @@ void TextureCache::DisableStage(unsigned int stage)

void TextureCache::SetStage ()
{
glActiveTexture(GL_TEXTURE0 + s_ActiveTexture);
// -1 is the initial value as we don't know which testure should be bound
if(s_ActiveTexture != (u32)-1)
glActiveTexture(GL_TEXTURE0 + s_ActiveTexture);
}

void TextureCache::SetNextStage ( unsigned int stage )
Expand Down

0 comments on commit f480697

Please sign in to comment.