From 0e228e9109c0537f94418db0c5df1903e28797d3 Mon Sep 17 00:00:00 2001 From: dankcushions Date: Wed, 11 Nov 2020 00:03:55 +0000 Subject: [PATCH] Removed GLES version check for glBufferStorage, allowing for any device that supports it. --- src/Graphics/OpenGLContext/opengl_ContextImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Graphics/OpenGLContext/opengl_ContextImpl.cpp b/src/Graphics/OpenGLContext/opengl_ContextImpl.cpp index 718844b4..ab956b74 100644 --- a/src/Graphics/OpenGLContext/opengl_ContextImpl.cpp +++ b/src/Graphics/OpenGLContext/opengl_ContextImpl.cpp @@ -67,7 +67,7 @@ void ContextImpl::init() } { - if ((m_glInfo.isGLESX && (m_glInfo.bufferStorage && m_glInfo.majorVersion * 10 + m_glInfo.minorVersion >= 32)) || !m_glInfo.isGLESX) + if ((m_glInfo.isGLESX && m_glInfo.bufferStorage) || !m_glInfo.isGLESX) m_graphicsDrawer.reset(new BufferedDrawer(m_glInfo, m_cachedFunctions->getCachedVertexAttribArray(), m_cachedFunctions->getCachedBindBuffer())); else m_graphicsDrawer.reset(new UnbufferedDrawer(m_glInfo, m_cachedFunctions->getCachedVertexAttribArray()));