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;