aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mesa/main/image.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-09-20 08:40:57 +0200
committermarha <marha@users.sourceforge.net>2011-09-20 08:40:57 +0200
commit0470a59df89ab453bdbe0fc2f820278cfffdc61c (patch)
tree5482d527c8426219414edc60d3891764ca2b1a20 /mesalib/src/mesa/main/image.c
parentb2c925e360e2c366526de15b44603f855f94139c (diff)
downloadvcxsrv-0470a59df89ab453bdbe0fc2f820278cfffdc61c.tar.gz
vcxsrv-0470a59df89ab453bdbe0fc2f820278cfffdc61c.tar.bz2
vcxsrv-0470a59df89ab453bdbe0fc2f820278cfffdc61c.zip
libX11 libxtrans mesa git update 20 sep 2011
Diffstat (limited to 'mesalib/src/mesa/main/image.c')
-rw-r--r--mesalib/src/mesa/main/image.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/mesalib/src/mesa/main/image.c b/mesalib/src/mesa/main/image.c
index 66d7eec65..15f7812e6 100644
--- a/mesalib/src/mesa/main/image.c
+++ b/mesalib/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;
}