A bugfix to make unsized SRGB format with UNSIGNED_BYTE type renderable
on texture targets erroneously caused test cases to expect same
renderablity on RBO targets as well. RBOs cannot be created with an
unsized internal formats. This change removes the erroneously added
expectation of renderablity from RBO targets.
Bug:
18755796
Change-Id: I8beb906ebccc1305fa910f18f355121623a1aca1
GL_SRGB8,
};
-static const FormatKey s_nvSrgbFormatsFormats[] =
+static const FormatKey s_nvSrgbFormatsRboFormats[] =
+{
+ GL_SRGB8,
+};
+
+static const FormatKey s_nvSrgbFormatsTextureFormats[] =
{
GL_SRGB8,
},
{
"GL_NV_sRGB_formats",
- REQUIRED_RENDERABLE | COLOR_RENDERABLE | TEXTURE_VALID | RENDERBUFFER_VALID,
- GLS_ARRAY_RANGE(s_nvSrgbFormatsFormats)
+ REQUIRED_RENDERABLE | COLOR_RENDERABLE | RENDERBUFFER_VALID,
+ GLS_ARRAY_RANGE(s_nvSrgbFormatsRboFormats)
+ },
+ {
+ "GL_NV_sRGB_formats",
+ REQUIRED_RENDERABLE | COLOR_RENDERABLE | TEXTURE_VALID,
+ GLS_ARRAY_RANGE(s_nvSrgbFormatsTextureFormats)
},
// In Khronos bug 7333 discussion, the consensus is that these texture