summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/glformats.c
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2012-09-15 18:15:22 +0100
committerJosé Fonseca <[email protected]>2012-09-15 18:18:39 +0100
commitb6c2234c22d5a935012870fa254e68d026ef265e (patch)
tree46441ab3b3110cd9f9c600b821efee6be8feecc9 /src/mesa/main/glformats.c
parente78ebbc5f9448d459b57884d90b0a6496294c1dd (diff)
Temporarily revert "mesa: remove remaining FEATURE_* defines where protected by API check."
This reverts commit 9f37b405a3de8668a5f74c9681829688475ac3b7. Fixes windows builds.
Diffstat (limited to 'src/mesa/main/glformats.c')
-rw-r--r--src/mesa/main/glformats.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c
index ec774f6fd37..047a613a131 100644
--- a/src/mesa/main/glformats.c
+++ b/src/mesa/main/glformats.c
@@ -827,6 +827,7 @@ _mesa_is_compressed_format(struct gl_context *ctx, GLenum format)
case GL_ETC1_RGB8_OES:
return _mesa_is_gles(ctx)
&& ctx->Extensions.OES_compressed_ETC1_RGB8_texture;
+#if FEATURE_ES
case GL_PALETTE4_RGB8_OES:
case GL_PALETTE4_RGBA8_OES:
case GL_PALETTE4_R5_G6_B5_OES:
@@ -838,6 +839,7 @@ _mesa_is_compressed_format(struct gl_context *ctx, GLenum format)
case GL_PALETTE8_RGBA4_OES:
case GL_PALETTE8_RGB5_A1_OES:
return ctx->API == API_OPENGLES;
+#endif
default:
return GL_FALSE;
}