mesa: turn on reporting of GLSL version 1.20
authorBrian Paul <brianp@vmware.com>
Tue, 17 Feb 2009 23:12:49 +0000 (16:12 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 17 Feb 2009 23:17:13 +0000 (16:17 -0700)
The new array features, precision/invariant/centroid qualifiers, etc. were
done a while back.  The glGetString(GL_SHADING_LANGUAGE_VERSION) query returns
"1.20" now (for drivers that support it anyway).

src/mesa/main/extensions.c
src/mesa/main/getstring.c

index 1b31e283cd343eff50ce577408d7723051cae38a..9c8bd13e6921119c33ed00a50104bf9289cf14fc 100644 (file)
@@ -208,7 +208,7 @@ _mesa_enable_sw_extensions(GLcontext *ctx)
    ctx->Extensions.ARB_shading_language_100 = GL_TRUE;
 #endif
 #if FEATURE_ARB_shading_language_120
-   ctx->Extensions.ARB_shading_language_120 = GL_FALSE; /* not quite done */
+   ctx->Extensions.ARB_shading_language_120 = GL_TRUE;
 #endif
    ctx->Extensions.ARB_shadow = GL_TRUE;
    ctx->Extensions.ARB_shadow_ambient = GL_TRUE;
@@ -433,7 +433,7 @@ _mesa_enable_2_1_extensions(GLcontext *ctx)
    ctx->Extensions.EXT_texture_sRGB = GL_TRUE;
 #endif
 #ifdef FEATURE_ARB_shading_language_120
-   ctx->Extensions.ARB_shading_language_120 = GL_FALSE; /* not quite done */
+   ctx->Extensions.ARB_shading_language_120 = GL_TRUE;
 #endif
 }
 
index a9e22d340a314fdae172dcc4db437a09cf507fe6..a42c44686dddca6fac81a47d9ada80a752468a42 100644 (file)
@@ -93,7 +93,7 @@ compute_version(const GLcontext *ctx)
                              (ctx->Extensions.EXT_stencil_two_side
                               || ctx->Extensions.ATI_separate_stencil));
    const GLboolean ver_2_1 = (ver_2_0 &&
-                              /*ctx->Extensions.ARB_shading_language_120 &&*/
+                              ctx->Extensions.ARB_shading_language_120 &&
                               ctx->Extensions.EXT_pixel_buffer_object &&
                               ctx->Extensions.EXT_texture_sRGB);
    if (ver_2_1)