[Mesa-dev] [PATCH 5/5] mesa: It is not possible to have GLSL < 1.20

Ian Romanick idr at freedesktop.org
Thu Dec 19 11:39:40 PST 2013


From: Ian Romanick <ian.d.romanick at intel.com>

This hasn't been possible for a long time.

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
 src/mesa/main/getstring.c | 2 --
 src/mesa/main/version.c   | 1 -
 2 files changed, 3 deletions(-)

diff --git a/src/mesa/main/getstring.c b/src/mesa/main/getstring.c
index d818911..b66e247 100644
--- a/src/mesa/main/getstring.c
+++ b/src/mesa/main/getstring.c
@@ -42,8 +42,6 @@ shading_language_version(struct gl_context *ctx)
    case API_OPENGL_COMPAT:
    case API_OPENGL_CORE:
       switch (ctx->Const.GLSLVersion) {
-      case 110:
-         return (const GLubyte *) "1.10";
       case 120:
          return (const GLubyte *) "1.20";
       case 130:
diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c
index 55411fa..00eeca7 100644
--- a/src/mesa/main/version.c
+++ b/src/mesa/main/version.c
@@ -224,7 +224,6 @@ compute_version(struct gl_context *ctx)
 			      (ctx->Extensions.EXT_stencil_two_side
 			       || ctx->Extensions.ATI_separate_stencil));
    const GLboolean ver_2_1 = (ver_2_0 &&
-                              ctx->Const.GLSLVersion >= 120 &&
                               ctx->Extensions.EXT_pixel_buffer_object &&
                               ctx->Extensions.EXT_texture_sRGB);
    const GLboolean ver_3_0 = (ver_2_1 &&
-- 
1.8.1.4



More information about the mesa-dev mailing list