diff options
| author | degasus <wickmarkus@web.de> | 2013-03-17 12:46:30 +0100 |
|---|---|---|
| committer | degasus <wickmarkus@web.de> | 2013-03-17 12:46:30 +0100 |
| commit | f480697b9b60e6e929f4667c027d260827cf6990 (patch) | |
| tree | 6668488faeff49f66f095e5c72157e23c56f69c9 /Source | |
| parent | 7597b8b8d50e14f3244d40d992746d500404a42e (diff) | |
remove some ogl error
but it doesn't resolve any issue
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp b/Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp index 1a1fee21a0..b0bc682f29 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp @@ -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 ) |
