From 08c847cc01cc489c3c5f9ee41fcabe0f331f134e Mon Sep 17 00:00:00 2001 From: Le Philousophe Date: Sat, 9 Apr 2022 21:41:55 +0200 Subject: [PATCH] STARK: Remove now useless glBindBuffer This function is not available in old OpenGL. --- engines/stark/gfx/opengl.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/engines/stark/gfx/opengl.cpp b/engines/stark/gfx/opengl.cpp index 8c18752137c..25951f86113 100644 --- a/engines/stark/gfx/opengl.cpp +++ b/engines/stark/gfx/opengl.cpp @@ -50,11 +50,6 @@ OpenGLDriver::~OpenGLDriver() { void OpenGLDriver::init() { computeScreenViewport(); -#if defined(USE_OPENGL_SHADERS) - // The ShaderSurfaceRenderer sets an array buffer which conflict with fixed pipeline rendering - glBindBuffer(GL_ARRAY_BUFFER, 0); -#endif // defined(USE_OPENGL_SHADERS) - glMatrixMode(GL_PROJECTION); glLoadIdentity(); glMatrixMode(GL_MODELVIEW); @@ -224,11 +219,6 @@ FadeRenderer *OpenGLDriver::createFadeRenderer() { } void OpenGLDriver::start2DMode() { -#if defined(USE_OPENGL_SHADERS) - // The ShaderSurfaceRenderer sets an array buffer which conflict with fixed pipeline rendering - glBindBuffer(GL_ARRAY_BUFFER, 0); -#endif // defined(USE_OPENGL_SHADERS) - // Enable alpha blending glEnable(GL_BLEND); //glBlendEquation(GL_FUNC_ADD); // It's the default @@ -253,11 +243,6 @@ void OpenGLDriver::end2DMode() { } void OpenGLDriver::set3DMode() { -#if defined(USE_OPENGL_SHADERS) - // The ShaderSurfaceRenderer sets an array buffer which conflict with fixed pipeline rendering - glBindBuffer(GL_ARRAY_BUFFER, 0); -#endif // defined(USE_OPENGL_SHADERS) - glEnable(GL_DEPTH_TEST); glDepthFunc(GL_LESS);