OpenGL: Reset viewport to FB size at each subpass

This commit is contained in:
Corentin Wallez 2017-08-17 16:15:13 -04:00 committed by Corentin Wallez
parent a214b7f12d
commit 1b6f7535aa
1 changed files with 1 additions and 0 deletions

View File

@ -273,6 +273,7 @@ namespace opengl {
} }
glBlendColor(0, 0, 0, 0); glBlendColor(0, 0, 0, 0);
glViewport(0, 0, currentFramebuffer->GetWidth(), currentFramebuffer->GetHeight());
} }
break; break;