summaryrefslogtreecommitdiff
path: root/src/graphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-06 21:15:02 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-06 21:15:02 +0300
commit56cfe4d3a38a2440622cf32f613a2b57ae5b3852 (patch)
tree556f69d83c770dd861e0dab59ab3db8429929bbd /src/graphics.cpp
parentfdbd1a4c521c537597b63cd4f2262517cab1f81a (diff)
downloadmanaverse-56cfe4d3a38a2440622cf32f613a2b57ae5b3852.tar.gz
manaverse-56cfe4d3a38a2440622cf32f613a2b57ae5b3852.tar.bz2
manaverse-56cfe4d3a38a2440622cf32f613a2b57ae5b3852.tar.xz
manaverse-56cfe4d3a38a2440622cf32f613a2b57ae5b3852.zip
Disable rectangular textures if texture sampler enabled.
Diffstat (limited to 'src/graphics.cpp')
-rw-r--r--src/graphics.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/graphics.cpp b/src/graphics.cpp
index 8b83880a7..6657fe3c1 100644
--- a/src/graphics.cpp
+++ b/src/graphics.cpp
@@ -175,7 +175,8 @@ bool Graphics::setOpenGLMode()
bool rectTex = graphicsManager.supportExtension(
"GL_ARB_texture_rectangle");
if (rectTex && OpenGLImageHelper::getInternalTextureType() == 4
- && config.getBoolValue("rectangulartextures"))
+ && config.getBoolValue("rectangulartextures")
+ && !graphicsManager.isUseTextureSampler())
{
logger->log1("using GL_ARB_texture_rectangle");
OpenGLImageHelper::mTextureType = GL_TEXTURE_RECTANGLE_ARB;