summaryrefslogtreecommitdiff
path: root/src/render/graphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-08 22:47:46 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-08 22:47:46 +0300
commit454508376039429ad292de69cd491badda798062 (patch)
treed1b341cbfd0a348fc775ecf275bdf17b7356fad9 /src/render/graphics.cpp
parent64aabf79b5a10bdf8192bb1048804a3e36730905 (diff)
downloadplus-454508376039429ad292de69cd491badda798062.tar.gz
plus-454508376039429ad292de69cd491badda798062.tar.bz2
plus-454508376039429ad292de69cd491badda798062.tar.xz
plus-454508376039429ad292de69cd491badda798062.zip
Fix code style in render.
Diffstat (limited to 'src/render/graphics.cpp')
-rw-r--r--src/render/graphics.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/render/graphics.cpp b/src/render/graphics.cpp
index 24c3ab69e..baceeacc1 100644
--- a/src/render/graphics.cpp
+++ b/src/render/graphics.cpp
@@ -300,8 +300,10 @@ bool Graphics::setOpenGLMode()
GLint texSize;
bool rectTex = graphicsManager.supportExtension(
"GL_ARB_texture_rectangle");
- if (rectTex && OpenGLImageHelper::getInternalTextureType() == 4
- && getOpenGL() != 3 && config.getBoolValue("rectangulartextures")
+ if (rectTex
+ && OpenGLImageHelper::getInternalTextureType() == 4
+ && getOpenGL() != RENDER_GLES_OPENGL
+ && config.getBoolValue("rectangulartextures")
&& !graphicsManager.isUseTextureSampler())
{
logger->log1("using GL_ARB_texture_rectangle");