summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2013-04-25 12:06:23 -0700
committerEric Anholt <[email protected]>2013-05-06 09:01:51 -0700
commitbd850cb4f2c77e2eb6716c865c40b9976633fc23 (patch)
tree0e889939ad8e0820f1e96fe7f44b4a43f594d4ac
parentec143dc0b1338e59a5eff1b10663b4d715976491 (diff)
i965: Remove GL_ARB_color_buffer_float from GL core contexts.
Of the 3 controls in the extension, one was kept in GL core and the other two were explicitly deprecated and the reasonable default behavior was encoded in the spec. By not exposing the extension, we avoid shader recompiles when switching between float and unorm color buffers. Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r--src/mesa/drivers/dri/intel/intel_extensions.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_extensions.c b/src/mesa/drivers/dri/intel/intel_extensions.c
index 18f19b8eefe..8d8e325a2c9 100644
--- a/src/mesa/drivers/dri/intel/intel_extensions.c
+++ b/src/mesa/drivers/dri/intel/intel_extensions.c
@@ -125,7 +125,8 @@ intelInitExtensions(struct gl_context *ctx)
if (intel->gen >= 4) {
if (ctx->API == API_OPENGL_CORE)
ctx->Extensions.ARB_base_instance = true;
- ctx->Extensions.ARB_color_buffer_float = true;
+ if (ctx->API != API_OPENGL_CORE)
+ ctx->Extensions.ARB_color_buffer_float = true;
ctx->Extensions.ARB_depth_buffer_float = true;
ctx->Extensions.ARB_depth_clamp = true;
ctx->Extensions.ARB_draw_instanced = true;