diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-08 22:47:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-08 22:47:46 +0300 |
commit | 454508376039429ad292de69cd491badda798062 (patch) | |
tree | d1b341cbfd0a348fc775ecf275bdf17b7356fad9 /src/render/graphics.cpp | |
parent | 64aabf79b5a10bdf8192bb1048804a3e36730905 (diff) | |
download | plus-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.cpp | 6 |
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"); |