From 56cfe4d3a38a2440622cf32f613a2b57ae5b3852 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 6 Oct 2012 21:15:02 +0300 Subject: Disable rectangular textures if texture sampler enabled. --- src/graphics.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/graphics.cpp') 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; -- cgit v1.2.3-60-g2f50