Commit 06a4ef18 authored by Ken Martin's avatar Ken Martin

Tiny fix for OpenGL ES 3

parent 329b86a3
...@@ -480,8 +480,9 @@ int vtkOpenGLRenderWindow::GetColorBufferSizes(int *rgba) ...@@ -480,8 +480,9 @@ int vtkOpenGLRenderWindow::GetColorBufferSizes(int *rgba)
GLint fboBind = 0; GLint fboBind = 0;
glGetIntegerv(GL_DRAW_FRAMEBUFFER_BINDING, &fboBind); glGetIntegerv(GL_DRAW_FRAMEBUFFER_BINDING, &fboBind);
GLint attachment = GL_BACK_LEFT; GLint attachment = GL_BACK_LEFT;
#ifdef GL_DRAW_BUFFER
glGetIntegerv(GL_DRAW_BUFFER, &attachment); glGetIntegerv(GL_DRAW_BUFFER, &attachment);
#endif
// GL seems odd with its handling of left/right. // GL seems odd with its handling of left/right.
// if it says we are using GL_FRONT or GL_BACK // if it says we are using GL_FRONT or GL_BACK
// then convert those to GL_FRONT_LEFT and // then convert those to GL_FRONT_LEFT and
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment