Commit b4191c3e by Corentin Wallez

ViewportTest::SetUp set the scissor to the default value

Previously ViewportTest would rely on the scissor being set to the size of the window by default, which is a fragile assumption as the scissor is set to the size of the window only on the first makeCurrent. BUG=angleproject:1105 Change-Id: I088565c7032fe817eb5c48a5351cc678fe42b376 Reviewed-on: https://chromium-review.googlesource.com/291310Tested-by: 's avatarCorentin Wallez <cwallez@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent f8dd7b10
......@@ -152,7 +152,8 @@ class ViewportTest : public ANGLETest
glClearDepthf(0.0);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
// Call glViewport with default parameters.
// Call glViewport and glScissor with default parameters.
glScissor(0, 0, getWindowWidth(), getWindowHeight());
glViewport(0, 0, getWindowWidth(), getWindowHeight());
glDisable(GL_DEPTH_TEST);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment