mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 18:03:56 -04:00
glgsg: Fix copy-to-texture/ram for multisample FBO
Should read from resolved FBO, not from multisample FBO Fixes #1129
This commit is contained in:
parent
dc516c5ef1
commit
52c0e2759e
@ -1937,6 +1937,9 @@ resolve_multisamples() {
|
||||
#endif
|
||||
report_my_gl_errors();
|
||||
|
||||
// Bind the regular FBO as read buffer for the sake of copy_to_textures.
|
||||
glgsg->_glBindFramebuffer(GL_READ_FRAMEBUFFER_EXT, fbo);
|
||||
|
||||
#ifndef OPENGLES
|
||||
if (_have_any_color) {
|
||||
glDrawBuffer(GL_COLOR_ATTACHMENT0_EXT);
|
||||
|
Loading…
x
Reference in New Issue
Block a user