summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2011-09-12 11:36:53 -0500
committerIan Romanick <[email protected]>2011-09-19 10:04:46 -0700
commita454c835fa4f1d243f9e2072007dd52cf0d71dac (patch)
treee51f291c94420d86d8626c185f498113b1a5d6b5 /src/mesa
parent4e7079ed548a2806654d5b28d5a1d1222e1486d3 (diff)
mesa: Add GL_OES_compressed_paletted_texture formats to _mesa_is_compressed_format
Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Brian Paul <[email protected]> Tested-by: Jin Yang <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/image.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c
index 66d7eec6588..15f7812e693 100644
--- a/src/mesa/main/image.c
+++ b/src/mesa/main/image.c
@@ -1068,6 +1068,19 @@ _mesa_is_compressed_format(struct gl_context *ctx, GLenum format)
return ctx->Extensions.EXT_texture_compression_latc;
case GL_COMPRESSED_LUMINANCE_ALPHA_3DC_ATI:
return ctx->Extensions.ATI_texture_compression_3dc;
+#if FEATURE_ES
+ case GL_PALETTE4_RGB8_OES:
+ case GL_PALETTE4_RGBA8_OES:
+ case GL_PALETTE4_R5_G6_B5_OES:
+ case GL_PALETTE4_RGBA4_OES:
+ case GL_PALETTE4_RGB5_A1_OES:
+ case GL_PALETTE8_RGB8_OES:
+ case GL_PALETTE8_RGBA8_OES:
+ case GL_PALETTE8_R5_G6_B5_OES:
+ case GL_PALETTE8_RGBA4_OES:
+ case GL_PALETTE8_RGB5_A1_OES:
+ return ctx->API == API_OPENGLES;
+#endif
default:
return GL_FALSE;
}