Restore viewport natively in fbo_bind_as_render_target()

This commit is contained in:
raven02 committed 2014-04-23 22:38:56 +08:00
1 parent 551564b2ea
commit 29193f0f2a
1 file changed
+3
+3
View File
@@ -278,6 +278,9 @@ void fbo_bind_as_render_target(FBO *fbo) {
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fbo->handle);
#endif
}
if (gl_extensions.gpuVendor != GPU_VENDOR_POWERVR) {
glstate.viewport.restore();
}
}
void fbo_bind_for_read(FBO *fbo) {