diff --git a/src/tests/cogl/conform/test-offscreen-texture-formats.c b/src/tests/cogl/conform/test-offscreen-texture-formats.c index d3be06c50..fc9e83277 100644 --- a/src/tests/cogl/conform/test-offscreen-texture-formats.c +++ b/src/tests/cogl/conform/test-offscreen-texture-formats.c @@ -71,6 +71,12 @@ test_offscreen_texture_formats_store_rgb10 (void) }; int i; + if (!cogl_has_feature (test_ctx, COGL_FEATURE_ID_TEXTURE_RGBA1010102)) + { + g_test_skip ("Driver does not support 10bpc formats"); + return; + } + /* The extra fraction is there to avoid rounding inconsistencies in OpenGL * implementations. */ red = (rgb10_red / (float) ((1 << 10) - 1)) + 0.00001; @@ -302,6 +308,12 @@ test_offscreen_texture_formats_paint_rgb10 (void) }; int i; + if (!cogl_has_feature (test_ctx, COGL_FEATURE_ID_TEXTURE_RGBA1010102)) + { + g_test_skip ("Driver does not support 10bpc formats"); + return; + } + /* The extra fraction is there to avoid rounding inconsistencies in OpenGL * implementations. */ red = (rgb10_red / (float) ((1 << 10 ) - 1)) + 0.00001;