[Mesa-dev] [PATCH 3/3] i965: Remove GL_ARB_color_buffer_float from GL core contexts.
Eric Anholt
eric at anholt.net
Thu Apr 25 13:20:25 PDT 2013
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.
---
src/mesa/drivers/dri/intel/intel_extensions.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/intel/intel_extensions.c b/src/mesa/drivers/dri/intel/intel_extensions.c
index 18f19b8..8d8e325 100755
--- 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;
--
1.7.10.4
More information about the mesa-dev
mailing list