Commit eb882040 by Gert Wollny Committed by Angle LUCI CQ

test/ImageTest: Clear back buffer when test cleanup

Many tests don't actually use the back buffer, so uninitialized data is used when capturing leading to failure. Hence, clear the back buffer when the test ends and before swap is called triggering the capture. Bug: angleproject:6035 Change-Id: I0a500ae9f5203feaf0b492dc18e84c5a92ee1497 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2944953Reviewed-by: 's avatarCody Northrop <cnorthrop@google.com> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Gert Wollny <gert.wollny@collabora.com>
parent d769742c
...@@ -273,6 +273,8 @@ class ImageTest : public ANGLETest ...@@ -273,6 +273,8 @@ class ImageTest : public ANGLETest
glDeleteProgram(mTextureProgram); glDeleteProgram(mTextureProgram);
glDeleteProgram(mTextureExternalProgram); glDeleteProgram(mTextureExternalProgram);
glDeleteProgram(mTextureExternalESSL3Program); glDeleteProgram(mTextureExternalESSL3Program);
glClearColor(0, 0, 0, 0);
glClear(GL_COLOR_BUFFER_BIT);
} }
void createEGLImage2DTextureSource(size_t width, void createEGLImage2DTextureSource(size_t width,
......
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