summaryrefslogtreecommitdiff
path: root/src/render
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-17 02:48:17 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-17 02:48:17 +0300
commit8d32becc5b0fe645d1b8dc4245310ff35ebd8777 (patch)
tree26b25e949a6a787c8d85e452545e3a8bfa70de06 /src/render
parent23f8cc7c1db313710180c0b1864a93cc76d2492d (diff)
downloadManaVerse-8d32becc5b0fe645d1b8dc4245310ff35ebd8777.tar.gz
ManaVerse-8d32becc5b0fe645d1b8dc4245310ff35ebd8777.tar.bz2
ManaVerse-8d32becc5b0fe645d1b8dc4245310ff35ebd8777.tar.xz
ManaVerse-8d32becc5b0fe645d1b8dc4245310ff35ebd8777.zip
Fix unit tests if build with SDL2 support.
Diffstat (limited to 'src/render')
-rw-r--r--src/render/graphics.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/render/graphics.cpp b/src/render/graphics.cpp
index 383ce96fd..e589058c5 100644
--- a/src/render/graphics.cpp
+++ b/src/render/graphics.cpp
@@ -320,7 +320,9 @@ bool Graphics::setOpenGLMode() restrict2
GLint texSize;
bool rectTex = graphicsManager.supportExtension(
- "GL_ARB_texture_rectangle");
+ "GL_ARB_texture_rectangle") ||
+ graphicsManager.supportExtension("GL_EXT_texture_rectangle");
+
if (rectTex
&& OpenGLImageHelper::getInternalTextureType() == 4
&& getOpenGL() != RENDER_GLES_OPENGL