summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-05 14:25:52 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-05 14:25:52 +0300
commit2feb55ced12bad73863ce79a07241344d40e7461 (patch)
treeeff551ba0420b094f40924ff96f7d7655cb5eee2 /src
parenta538627edfe8214eff1b3b890ffa6eb9832f7de5 (diff)
downloadmanaplus-2feb55ced12bad73863ce79a07241344d40e7461.tar.gz
manaplus-2feb55ced12bad73863ce79a07241344d40e7461.tar.bz2
manaplus-2feb55ced12bad73863ce79a07241344d40e7461.tar.xz
manaplus-2feb55ced12bad73863ce79a07241344d40e7461.zip
Fix fallback in corrupted texture sampler.
Diffstat (limited to 'src')
-rw-r--r--src/graphicsmanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp
index c3867cb59..dfab1c600 100644
--- a/src/graphicsmanager.cpp
+++ b/src/graphicsmanager.cpp
@@ -671,7 +671,6 @@ void GraphicsManager::initOpenGL()
void GraphicsManager::createTextureSampler()
{
- OpenGLImageHelper::setUseTextureSampler(mUseTextureSampler);
if (mUseTextureSampler)
{
logger->log("using texture sampler");
@@ -681,6 +680,7 @@ void GraphicsManager::createTextureSampler()
{
mUseTextureSampler = false;
logger->log("texture sampler error");
+ OpenGLImageHelper::setUseTextureSampler(mUseTextureSampler);
return;
}
OpenGLImageHelper::initTextureSampler(mTextureSampler);
@@ -691,6 +691,7 @@ void GraphicsManager::createTextureSampler()
logger->log("texture sampler error");
}
}
+ OpenGLImageHelper::setUseTextureSampler(mUseTextureSampler);
}
unsigned int GraphicsManager::getLastError()