mesa: Disable GL_NV_primitive_restart extension in core contexts.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 3 Dec 2012 06:30:45 +0000 (22:30 -0800)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Wed, 13 Feb 2013 17:38:42 +0000 (18:38 +0100)
commite582e35227adefccdfa5954008ee8543d5d81fcf
tree4feec9063c55599941d167ba9b1cd39371e10f01
parent37be707f57df72071a43b9899dec063730c338f5
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@anholt.net>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
(cherry picked from commit 32c6db3978e89e61660d9479d7548cb7a5e04ba2)
src/mesa/main/extensions.c