]> git.tdb.fi Git - libs/gl.git/blobdiff - extensions/ext_texture_srgb.glext
Make extensions compatible with OpenGL ES
[libs/gl.git] / extensions / ext_texture_srgb.glext
index a592cdfa05da9190f2da55690c6752c43535304d..2bfbcf481e50d6c2ed57baf1ff3f6daf86ede0fc 100644 (file)
@@ -1,9 +1,19 @@
 extension EXT_texture_sRGB
+# The automatically detected source extensions are incorrect; EXT_sRGB provides
+# SRGB8_ALPHA8 only for renderbuffers while NV_sRGB_formats provides SRGB8 only
+# for immutable texture storage
+gles2:source none
+# Unsized sRGB internal formats are not available on OpenGL ES
+optional GL_SRGB_EXT
+optional GL_SRGB_ALPHA_EXT
 # Specific compressed formats were not promoted to core
 ignore GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT
 ignore GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT
 ignore GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT
 ignore GL_COMPRESSED_SRGB_S3TC_DXT1_EXT
+# Generic compressed formats are not available on OpenGL ES
+ignore GL_COMPRESSED_SRGB_EXT
+ignore GL_COMPRESSED_SRGB_ALPHA_EXT
 # Luminance formats are deprecated
 ignore GL_COMPRESSED_SLUMINANCE_EXT
 ignore GL_COMPRESSED_SLUMINANCE_ALPHA_EXT