summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-08 13:29:42 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-08 13:29:42 +0300
commitb8dbda756100d2ad6c01ddac0247296a74c28742 (patch)
tree025f4198f4ec831ca40b2cc3bef2113bffbdf6ff
parent3b343e2c62fd8035cd0be24f63aaea3fb203d73e (diff)
downloadplus-b8dbda756100d2ad6c01ddac0247296a74c28742.tar.gz
plus-b8dbda756100d2ad6c01ddac0247296a74c28742.tar.bz2
plus-b8dbda756100d2ad6c01ddac0247296a74c28742.tar.xz
plus-b8dbda756100d2ad6c01ddac0247296a74c28742.zip
Enable texture sampler by default only for Nvidia driver.
Because other extensions can not work with it at same time. Bugs in Mesa...
-rw-r--r--src/defaults.cpp2
-rw-r--r--src/graphicsmanager.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/defaults.cpp b/src/defaults.cpp
index a7b403298..0d24f0a0b 100644
--- a/src/defaults.cpp
+++ b/src/defaults.cpp
@@ -265,7 +265,7 @@ DefaultsData* getConfigDefaults()
AddDEF("enableCompoundSpriteDelay", true);
AddDEF("npcfontSize", 13);
AddDEF("useAtlases", true);
- AddDEF("useTextureSampler", true);
+ AddDEF("useTextureSampler", false);
return configData;
}
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp
index 0688540a7..7b56498dc 100644
--- a/src/graphicsmanager.cpp
+++ b/src/graphicsmanager.cpp
@@ -148,6 +148,7 @@ bool GraphicsManager::detectGraphics()
{
// hope it can work well
logger->log("detected NVIDIA driver");
+ config.setValue("useTextureSampler", true);
mode = 1;
}