mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-11 19:54:03 +00:00
STARK: Reset array buffer in OpenGL renderer
This commit is contained in:
parent
c9cf81874a
commit
6b14053452
@ -222,6 +222,11 @@ 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
|
||||
@ -246,6 +251,11 @@ 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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user