Commit b27f79a7 by hendrikw Committed by Geoff Lang

Fix FloatCopySubImage tests for RGB

A test was checking that if we have less than 4 channels, and no GL_EXT_texture_rg, we would expect an invalid operation. Now that we don't expose GL_EXT_texture_rg on DX9, this is firing, and I believe incorrectly. I've changed the condition to test for less than 3 channals, since RGB -> RGB should work fine without texture_rg support. Change-Id: I9955b143c37df9762e0ef45c987581fab2bbcef0 Reviewed-on: https://chromium-review.googlesource.com/255933Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Tested-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent 72ba85bf
......@@ -165,7 +165,7 @@ class TextureTest : public ANGLETest
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 2, 2, sourceUnsizedFormat, GL_FLOAT, imageData);
if (sourceImageChannels < 4 && !extensionEnabled("GL_EXT_texture_rg"))
if (sourceImageChannels < 3 && !extensionEnabled("GL_EXT_texture_rg"))
{
// This is not supported
ASSERT_GL_ERROR(GL_INVALID_OPERATION);
......
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