Skip to content

Ensure framebuffer is active before read/draw pixels.

SetPixel/GetPixel API on vtkOpenGLRenderWindow did not ensure that the frame buffer object is used to render into was made active before doing the draw/read pixel calls. This could have odd effects in applications with multiple render-windows. Fixed that.

Also fixes potential glDrawBuffer/glReadBuffer calls being called with invalid buffer id when GL_DRAW_BUFFER, GL_READ_BUFFER were no defined.

Merge request reports