From a80a1c69f8a5f4db88ade16e3b9d53f7b648be47 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 8 Oct 2012 17:11:06 +0300 Subject: Get from video detection texture compression and texture sampler modes. --- src/test/testmain.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/test/testmain.cpp') diff --git a/src/test/testmain.cpp b/src/test/testmain.cpp index 94914c41b..535cfebc4 100644 --- a/src/test/testmain.cpp +++ b/src/test/testmain.cpp @@ -195,17 +195,17 @@ int TestMain::exec(const bool testAudio) */ // if OpenGL implimentation is not good, disable it. - if (!detectMode) + if (!(detectMode & 15)) openGLMode = 0; writeConfig(openGLMode, rescaleTest[openGLMode], - soundTest, info, batchSize); + soundTest, info, batchSize, detectMode); return 0; } void TestMain::writeConfig(const int openGLMode, const int rescale, const int sound, const std::string &info, - const int batchSize) + const int batchSize, const int detectMode) { mConfig.init(Client::getConfigDirectory() + "/config.xml"); @@ -226,6 +226,12 @@ void TestMain::writeConfig(const int openGLMode, const int rescale, // max batch size // mConfig.setValue("batchsize", batchSize); + // additinal modes + mConfig.setValue("useTextureSampler", + static_cast(detectMode & 1024)); + mConfig.setValue("compresstextures", + static_cast(detectMode & 2048)); + // stats mConfig.setValue("testInfo", info); -- cgit v1.2.3-60-g2f50