diff options
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"); |