diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-04-27 21:42:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-04-27 21:42:12 +0300 |
commit | 7f0fa9b82fc4deb28d61fc0d2fc503f0e48747c1 (patch) | |
tree | 5b715f738f41de528b32d5f40b6aadeafccef3df /src/openglgraphics.cpp | |
parent | 7ed1a27d17f23a842d4bedfb9f218ec48ed94fd7 (diff) | |
download | manaverse-7f0fa9b82fc4deb28d61fc0d2fc503f0e48747c1.tar.gz manaverse-7f0fa9b82fc4deb28d61fc0d2fc503f0e48747c1.tar.bz2 manaverse-7f0fa9b82fc4deb28d61fc0d2fc503f0e48747c1.tar.xz manaverse-7f0fa9b82fc4deb28d61fc0d2fc503f0e48747c1.zip |
Try enable rectangular textures before using it.
Diffstat (limited to 'src/openglgraphics.cpp')
-rw-r--r-- | src/openglgraphics.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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)", |