This make sure we have a valid framebuffer in current context. Some GPU driver like MALI is buggy and will crash on glEndQuery with targets like GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN if no valid framebuffer in current context. Signed-off-by: Lepton Wu <lepton@chromium.org> Reviewed-by: Gert Wollny <gert.wollny@collabora.com>macos/master
parent
c76f046f05
commit
c488abed8d
Loading…
Reference in new issue