From affcd03e068e4b3b4a44712c77c6cf355d18d936 Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Fri, 20 Apr 2012 10:18:33 -0300 Subject: [PATCH] don't use hardware buffers by default --- src/framework/graphics/graphics.cpp | 6 +++--- src/framework/graphics/graphics.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/framework/graphics/graphics.cpp b/src/framework/graphics/graphics.cpp index 35d14034..cceadb12 100644 --- a/src/framework/graphics/graphics.cpp +++ b/src/framework/graphics/graphics.cpp @@ -123,8 +123,8 @@ bool Graphics::parseOption(const std::string& option) m_useHardwareMipmaps = false; else if(option == "-no-smooth") m_useBilinearFiltering = false; - else if(option == "-no-hardware-buffers") - m_useHardwareBuffers = false; + else if(option == "-hardware-buffers") + m_useHardwareBuffers = true; else if(option == "-no-non-power-of-two-textures") m_useNonPowerOfTwoTextures = false; else if(option == "-no-clamp-to-edge") @@ -271,7 +271,7 @@ bool Graphics::canUseBilinearFiltering() bool Graphics::canUseHardwareBuffers() { #if OPENGL_ES==2 - return true; + return m_useHardwareBuffers; #elif OPENGL_ES==1 // OpenGL ES 1.1 supports it but OpenGL ES 1.0 not return false; diff --git a/src/framework/graphics/graphics.h b/src/framework/graphics/graphics.h index 1d5bf50d..872cbee0 100644 --- a/src/framework/graphics/graphics.h +++ b/src/framework/graphics/graphics.h @@ -71,7 +71,7 @@ private: int m_maxTextureSize; Boolean m_useDrawArrays; Boolean m_useFBO; - Boolean m_useHardwareBuffers; + Boolean m_useHardwareBuffers; Boolean m_useBilinearFiltering; Boolean m_useNonPowerOfTwoTextures; Boolean m_useMipmaps;