Commit 096725bc by Corentin Wallez

ANGLETest: set viewport after resizing to help apitrace

Otherwise apitrace doesn't know the dimension of the framebuffer and cannot display it. BUG=angleproject:892 Change-Id: Ib8ad846ca80e4783ab77c96430bb5220df1a39ab Reviewed-on: https://chromium-review.googlesource.com/286881Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Tested-by: 's avatarCorentin Wallez <cwallez@chromium.org>
parent 01c796ac
...@@ -29,6 +29,11 @@ void ANGLETest::SetUp() ...@@ -29,6 +29,11 @@ void ANGLETest::SetUp()
// which will allow follow-up test code to assume the framebuffer covers // which will allow follow-up test code to assume the framebuffer covers
// the whole window. // the whole window.
swapBuffers(); swapBuffers();
// This Viewport command is not strictly necessary but we add it so that programs
// taking OpenGL traces can guess the size of the default framebuffer and show it
// in their UIs
glViewport(0, 0, mEGLWindow->getWidth(), mEGLWindow->getHeight());
} }
void ANGLETest::TearDown() void ANGLETest::TearDown()
......
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