From 7f0fa9b82fc4deb28d61fc0d2fc503f0e48747c1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 27 Apr 2012 21:42:12 +0300 Subject: Try enable rectangular textures before using it. --- src/opengl1graphics.cpp | 1 + src/openglgraphics.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/opengl1graphics.cpp b/src/opengl1graphics.cpp index ae46846c9..1f08443cc 100644 --- a/src/opengl1graphics.cpp +++ b/src/opengl1graphics.cpp @@ -129,6 +129,7 @@ bool OpenGL1Graphics::setVideoMode(int w, int h, int bpp, bool fs, { logger->log1("using GL_ARB_texture_rectangle"); Image::mTextureType = GL_TEXTURE_RECTANGLE_ARB; + glEnable(GL_TEXTURE_RECTANGLE_ARB); glGetIntegerv(GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB, &texSize); Image::mTextureSize = texSize; logger->log("OpenGL texture size: %d pixels (rectangle textures)", diff --git a/src/openglgraphics.cpp b/src/openglgraphics.cpp index 5d0410f33..0e5c01ca6 100644 --- a/src/openglgraphics.cpp +++ b/src/openglgraphics.cpp @@ -160,6 +160,7 @@ bool OpenGLGraphics::setVideoMode(int w, int h, int bpp, bool fs, { logger->log1("using GL_ARB_texture_rectangle"); Image::mTextureType = GL_TEXTURE_RECTANGLE_ARB; + glEnable(GL_TEXTURE_RECTANGLE_ARB); glGetIntegerv(GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB, &texSize); Image::mTextureSize = texSize; logger->log("OpenGL texture size: %d pixels (rectangle textures)", -- cgit v1.2.3-70-g09d2