Commit 028a7a72 by Ancheng Qiao Committed by Commit Bot

Skip if GL_EXT_texture_compression_dxt1 isn't supported

If GL_EXT_texture_compression_dxt1 is not support, will be failed at glCompressedTexImage2D in CopyCompressedTextureTest.Immutable Bug: angleproject:1424 Change-Id: I287c6a40c1c09fa379088e5ad4bec06f0dfc2f59 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2086533 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 9e9493f2
...@@ -319,8 +319,8 @@ TEST_P(CopyCompressedTextureTest, Immutable) ...@@ -319,8 +319,8 @@ TEST_P(CopyCompressedTextureTest, Immutable)
{ {
return; return;
} }
// http://anglebug.com/4092
ANGLE_SKIP_TEST_IF((IsAndroid() && IsVulkan()) || isSwiftshader()); ANGLE_SKIP_TEST_IF(!IsGLExtensionEnabled("GL_EXT_texture_compression_dxt1"));
glBindTexture(GL_TEXTURE_2D, mTextures[0]); glBindTexture(GL_TEXTURE_2D, mTextures[0]);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
......
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