Support GL_EXT_texture_sRGB_R(G)8 extensions in fbo completeness tests.
Change-Id: Ic91c8106f63848c0f960af45b75a55f62a2d107e
diff --git a/modules/glshared/glsFboCompletenessTests.cpp b/modules/glshared/glsFboCompletenessTests.cpp
index 6033acf..fc93f49 100644
--- a/modules/glshared/glsFboCompletenessTests.cpp
+++ b/modules/glshared/glsFboCompletenessTests.cpp
@@ -207,6 +207,16 @@
GLS_UNSIZED_FORMATKEY(GL_RGBA, GL_UNSIGNED_BYTE),
};
+static const FormatKey s_extTextureSRGBR8Formats[] =
+{
+ GL_SR8_EXT,
+};
+
+static const FormatKey s_extTextureSRGBRG8Formats[] =
+{
+ GL_SRG8_EXT,
+};
+
static const FormatExtEntry s_esExtFormats[] =
{
{
@@ -378,6 +388,17 @@
TEXTURE_VALID, // explicitly unrenderable
GLS_ARRAY_RANGE(s_oesRequiredInternalFormat10bitColorFormats)
},
+
+ {
+ "GL_EXT_texture_sRGB_R8",
+ TEXTURE_VALID,
+ GLS_ARRAY_RANGE(s_extTextureSRGBR8Formats)
+ },
+ {
+ "GL_EXT_texture_sRGB_RG8",
+ TEXTURE_VALID,
+ GLS_ARRAY_RANGE(s_extTextureSRGBRG8Formats)
+ },
};
Context::Context (TestContext& testCtx,