summaryrefslogtreecommitdiff
path: root/src/opengl1graphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-04-27 21:42:12 +0300
committerAndrei Karas <akaras@inbox.ru>2012-04-27 21:42:12 +0300
commit7f0fa9b82fc4deb28d61fc0d2fc503f0e48747c1 (patch)
tree5b715f738f41de528b32d5f40b6aadeafccef3df /src/opengl1graphics.cpp
parent7ed1a27d17f23a842d4bedfb9f218ec48ed94fd7 (diff)
downloadmanaplus-7f0fa9b82fc4deb28d61fc0d2fc503f0e48747c1.tar.gz
manaplus-7f0fa9b82fc4deb28d61fc0d2fc503f0e48747c1.tar.bz2
manaplus-7f0fa9b82fc4deb28d61fc0d2fc503f0e48747c1.tar.xz
manaplus-7f0fa9b82fc4deb28d61fc0d2fc503f0e48747c1.zip
Try enable rectangular textures before using it.
Diffstat (limited to 'src/opengl1graphics.cpp')
-rw-r--r--src/opengl1graphics.cpp1
1 files changed, 1 insertions, 0 deletions
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)",