Commit ee0c9688 authored by Ken Martin's avatar Ken Martin Committed by Kitware Robot

Merge topic 'fix_es3_issue'

eefa1ada try fixing an opengl es3 issue
Acked-by: Kitware Robot's avatarKitware Robot <>
Merge-request: !6046
parents 81e29367 eefa1ada
Pipeline #147973 failed with stage
in 0 seconds
......@@ -582,7 +582,7 @@ void vtkOpenGLState::vtkglDrawBuffer(unsigned int val)
this->CurrentState.DrawBinding.DrawBuffers[0] = val;
::glDrawBuffers(1, this->CurrentState.DrawBinding.DrawBuffers);
// change all stack entries for the same framebuffer
......@@ -1259,7 +1259,9 @@ void vtkOpenGLState::Initialize(vtkOpenGLRenderWindow *)
::glBindFramebuffer(GL_DRAW_FRAMEBUFFER, this->CurrentState.DrawBinding.GetBinding());
::glBindFramebuffer(GL_READ_FRAMEBUFFER, this->CurrentState.ReadBinding.GetBinding());
unsigned int vals[1];
vals[0] = this->CurrentState.DrawBinding.GetDrawBuffer(0);
::glDrawBuffers(1, vals);
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