From 8d32becc5b0fe645d1b8dc4245310ff35ebd8777 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 17 Feb 2016 02:48:17 +0300 Subject: Fix unit tests if build with SDL2 support. --- src/render/graphics.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/render/graphics.cpp') 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 -- cgit v1.2.3-70-g09d2