Commit 9e3bd310 by Frank Henigman Committed by Commit Bot

Enable CopyTex(Sub)Image default FB on Mesa/GLX.

Allow CopyTexImageTest.SubDefaultFramebuffer and CopyTexImageTest.DefaultFramebuffer to work with Mesa and GLX back end by doing a clear before reading the framebuffer. BUG=angleproject:2027 Change-Id: Ibb10369e3f5aceb60511fbed1d67a28132734b29 Reviewed-on: https://chromium-review.googlesource.com/507952Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
parent 487b63ab
......@@ -302,13 +302,9 @@ TEST_P(CopyTexImageTest, SubImageRGBToL)
// Read default framebuffer with glCopyTexImage2D().
TEST_P(CopyTexImageTest, DefaultFramebuffer)
{
// TODO(fjhenigman): Test fails on Linnux Intel with the following in GL Debug Output:
// GL_INVALID_OPERATION in glCopyTexImage2D(missing readbuffer)
if (IsLinux() && IsIntel())
{
std::cout << "Test skipped on Linux Intel." << std::endl;
return;
}
// Seems to be a bug in Mesa with the GLX back end: cannot read framebuffer until we draw to it.
// glCopyTexImage2D() below will fail without this clear.
glClear(GL_COLOR_BUFFER_BIT);
const GLint w = getWindowWidth(), h = getWindowHeight();
GLTexture tex;
......@@ -321,13 +317,9 @@ TEST_P(CopyTexImageTest, DefaultFramebuffer)
// Read default framebuffer with glCopyTexSubImage2D().
TEST_P(CopyTexImageTest, SubDefaultFramebuffer)
{
// TODO(fjhenigman): Test fails on Linnux Intel with the following in GL Debug Output:
// GL_INVALID_OPERATION in glCopyTexImage2D(missing readbuffer)
if (IsLinux() && IsIntel())
{
std::cout << "Test skipped on Linux Intel." << std::endl;
return;
}
// Seems to be a bug in Mesa with the GLX back end: cannot read framebuffer until we draw to it.
// glCopyTexSubImage2D() below will fail without this clear.
glClear(GL_COLOR_BUFFER_BIT);
const GLint w = getWindowWidth(), h = getWindowHeight();
GLTexture tex;
......
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