diff options
author | Gunnar Sletta <gunnar.sletta@nokia.com> | 2010-12-03 23:21:38 +0100 |
---|---|---|
committer | Gunnar Sletta <gunnar.sletta@nokia.com> | 2010-12-03 23:21:38 +0100 |
commit | 5c7678f9b69d2c0275de37618bb03b9fd398b504 (patch) | |
tree | dc636e4a88d880637150c63e0055f760168bec42 | |
parent | ceeb7eab3be942f424b15a1825dc656a0d5bf7c4 (diff) |
unbind the texture in the background thread
-rw-r--r-- | src/adaptationlayers/threadedtexturemanager.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/adaptationlayers/threadedtexturemanager.cpp b/src/adaptationlayers/threadedtexturemanager.cpp index a1af9cf..2522733 100644 --- a/src/adaptationlayers/threadedtexturemanager.cpp +++ b/src/adaptationlayers/threadedtexturemanager.cpp @@ -69,6 +69,8 @@ public: if (work.hints & TextureManager::GenerateMipmapUploadHint) glGenerateMipmap(GL_TEXTURE_2D); + glBindTexture(GL_TEXTURE_2D, 0); + work.texture->setTextureId(id); work.texture->setTextureSize(work.image.size()); work.texture->setMipmaps(work.hints & TextureManager::GenerateMipmapUploadHint); |