Mesa (master): mesa: Disable GL_NV_primitive_restart extension in core contexts.
Kenneth Graunke
kwg at kemper.freedesktop.org
Tue Dec 4 02:01:44 UTC 2012
Module: Mesa
Branch: master
Commit: 32c6db3978e89e61660d9479d7548cb7a5e04ba2
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=32c6db3978e89e61660d9479d7548cb7a5e04ba2
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Sun Dec 2 22:30:45 2012 -0800
mesa: Disable GL_NV_primitive_restart extension in core contexts.
The NV formulation of primitive restart is turned on/off with
glEnableClientState/glDisableClientState. These two functions don't
exist in core contexts, which mean that GL_NV_primitive_restart is
essentially useless...even broken.
However, leaving it on causes oglconform's primitive-restart-nv tests to
run in OpenGL 3.1 contexts, which results in them all failing. This
patch causes 29 subtests to go from "fail" to "not run".
NOTE: This is a candidate for stable branches.
Reviewed-by: Eric Anholt <eric at anholt.net>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
---
src/mesa/main/extensions.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c
index 9e23a66..5fbfe25 100644
--- a/src/mesa/main/extensions.c
+++ b/src/mesa/main/extensions.c
@@ -308,7 +308,7 @@ static const struct extension extension_table[] = {
{ "GL_NV_light_max_exponent", o(dummy_true), GLL, 1999 },
{ "GL_NV_packed_depth_stencil", o(EXT_packed_depth_stencil), GL, 2000 },
{ "GL_NV_point_sprite", o(NV_point_sprite), GL, 2001 },
- { "GL_NV_primitive_restart", o(NV_primitive_restart), GL, 2002 },
+ { "GL_NV_primitive_restart", o(NV_primitive_restart), GLL, 2002 },
{ "GL_NV_read_buffer", o(dummy_true), ES2, 2011 },
{ "GL_NV_texgen_reflection", o(dummy_true), GLL, 1999 },
{ "GL_NV_texture_barrier", o(NV_texture_barrier), GL, 2009 },
More information about the mesa-commit
mailing list