glgsg: fix invalid operation error with multisample FBO

Panda is forgetting to reset the current FBO when resolving multisamples.
This commit is contained in:
rdb 2018-04-04 21:46:01 +02:00
parent 7cbdd3b6c4
commit 94476fd1f0

View File

@ -1767,6 +1767,7 @@ resolve_multisamples() {
}
glgsg->_glBindFramebuffer(GL_DRAW_FRAMEBUFFER_EXT, fbo);
glgsg->_glBindFramebuffer(GL_READ_FRAMEBUFFER_EXT, _fbo_multisample);
glgsg->_current_fbo = fbo;
// If the depth buffer is shared, resolve it only on the last to render FBO.
bool do_depth_blit = false;