mesa: don't advertise bogus GL_ARB_shading_language_120 extension
authorBrian Paul <brianp@vmware.com>
Wed, 22 Sep 2010 00:13:02 +0000 (18:13 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 22 Sep 2010 00:13:04 +0000 (18:13 -0600)
commite7087175f8a04f777403366fb34b58edd00f4d60
treea6720bb374844ccd8c7eb790f33e0ebda6cdc324
parent3642ca2f66efa8e078062f566b8f9975928d9f44
mesa: don't advertise bogus GL_ARB_shading_language_120 extension

Instead of using the invalid GL_ARB_shading_language_120 extension to
determine the GLSL version, use a new ctx->Const.GLSLVersion field.
Updated the intel and r600 drivers, but untested.

See fd.o bug 29910

NOTE: This is a candidate for the 7.9 branch (but let's wait and see if
there's any regressions).
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/intel/intel_extensions.c
src/mesa/drivers/dri/r600/r600_context.c
src/mesa/main/context.c
src/mesa/main/extensions.c
src/mesa/main/getstring.c
src/mesa/main/mtypes.h
src/mesa/main/version.c
src/mesa/state_tracker/st_extensions.c