STARK: Remove now useless glBindBuffer

This function is not available in old OpenGL.
This commit is contained in:
Le Philousophe
2022-04-09 21:47:01 +02:00
parent 1cf0b7d1b3
commit 08c847cc01
-15
View File
@@ -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);