Reset scissor reset before presenting in opengl

The opengl backend uses glBlitFramebuffer to present frames which
is affected by the opengl scissor rect.

Bug: dawn:616
Change-Id: I0b8c3eb7139ab22a98eeb60e3ad16678e3afad5d
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/37101
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Stephen White <senorblanco@chromium.org>
Commit-Queue: Mark Sibly <marksibly@gmail.com>
This commit is contained in:
Mark Sibly 2021-01-13 05:09:24 +00:00 committed by Commit Bot service account
parent 424fd82889
commit 9f9a9785f2
1 changed files with 1 additions and 0 deletions

View File

@ -72,6 +72,7 @@ namespace dawn_native { namespace opengl {
const OpenGLFunctions& gl = mDevice->gl;
gl.BindFramebuffer(GL_READ_FRAMEBUFFER, mBackFBO);
gl.BindFramebuffer(GL_DRAW_FRAMEBUFFER, 0);
gl.Scissor(0, 0, mWidth, mHeight);
gl.BlitFramebuffer(0, 0, mWidth, mHeight, 0, mHeight, mWidth, 0, GL_COLOR_BUFFER_BIT,
GL_NEAREST);