Commit 167dceb3 by Geoff Lang

Check for the extension before creating compressed textures in SwizzleTest.

Change-Id: Ia561fc7bb0262ab6974517d9796e4828db5b511c Reviewed-on: https://chromium-review.googlesource.com/263251Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Tested-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent 35d315c3
......@@ -265,6 +265,11 @@ TYPED_TEST(SwizzleTest, D24_2D)
TYPED_TEST(SwizzleTest, CompressedDXT_2D)
{
if (!extensionEnabled("GL_EXT_texture_compression_dxt1"))
{
return;
}
init2DCompressedTexture(GL_COMPRESSED_RGBA_S3TC_DXT1_EXT, pixel_0_width, pixel_0_height, pixel_0_size, pixel_0_data);
runTest2D();
}
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