summaryrefslogtreecommitdiff
path: root/src/graphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-25 21:43:32 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-26 13:48:26 +0300
commit9abb51fce0cca32ebe267c4797363d99520c2a0a (patch)
treee0a22c5dc699fdd0f85d04ff1aa96196cc8d43ac /src/graphics.cpp
parent5ff486002243e1481e6686494a85480a85220451 (diff)
downloadplus-9abb51fce0cca32ebe267c4797363d99520c2a0a.tar.gz
plus-9abb51fce0cca32ebe267c4797363d99520c2a0a.tar.bz2
plus-9abb51fce0cca32ebe267c4797363d99520c2a0a.tar.xz
plus-9abb51fce0cca32ebe267c4797363d99520c2a0a.zip
Add initial version of mobile OpenGL backend.
Diffstat (limited to 'src/graphics.cpp')
-rw-r--r--src/graphics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graphics.cpp b/src/graphics.cpp
index 9f45899f5..4c1d4e832 100644
--- a/src/graphics.cpp
+++ b/src/graphics.cpp
@@ -174,7 +174,7 @@ bool Graphics::setOpenGLMode()
bool rectTex = graphicsManager.supportExtension(
"GL_ARB_texture_rectangle");
if (rectTex && OpenGLImageHelper::getInternalTextureType() == 4
- && config.getBoolValue("rectangulartextures")
+ && getOpenGL() != 3 && config.getBoolValue("rectangulartextures")
&& !graphicsManager.isUseTextureSampler())
{
logger->log1("using GL_ARB_texture_rectangle");