mesa: fix GL_COLOR_SUM enum for drivers without ARB_vertex_program
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 16 Jan 2014 18:13:28 +0000 (13:13 -0500)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 17 Jan 2014 00:42:33 +0000 (16:42 -0800)
commit739dc95e676b31349525b7daf99453b987748248
tree597a1bcada78d3bef03c444b79c151563cd5981d
parent93b953d139112bea1c9c64a3de462cbb52c544fd
mesa: fix GL_COLOR_SUM enum for drivers without ARB_vertex_program

Commit c13970808 (mesa: GL_EXT_secondary_color is not optional) changed

CHECK_EXTENSION2(EXT_secondary_color, ARB_vetex_program, cap)

to

CHECK_EXTENSION(ARB_vertex_program, cap)

However CHECK_EXTENSION2 checks that either extension is available, not
both. Remove the extension check entirely since the intent was for it to
always be enabled.

v2: Fix glGet*(GL_COLOR_SUM) too.  Suggested by Ian.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Cc: 9.2 10.0 <mesa-stable@lists.freedesktop.org>
src/mesa/main/enable.c
src/mesa/main/get_hash_params.py