summarylogtreecommitdiffstats
path: root/catalyst mutter cogl.patch
blob: 82f8d98d8be6b9698d016555dd627f953de177b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- mutter3221/cogl/cogl/driver/gl/gl/cogl-driver-gl.c	2016-10-17 20:43:31.283749432 +0200
+++ mutter3221b/cogl/cogl/driver/gl/gl/cogl-driver-gl.c	2016-10-17 20:47:44.000000000 +0200
@@ -416,9 +416,13 @@
                                       &ctx->glsl_minor);
     }
 
-  if (COGL_CHECK_GL_VERSION (ctx->glsl_major, ctx->glsl_minor, 1, 2))
-    /* We want to use version 120 if it is available so that the
-     * gl_PointCoord can be used. */
+  if (COGL_CHECK_GL_VERSION (ctx->glsl_major, ctx->glsl_minor, 1, 5))
+    ctx->glsl_version_to_use = 150;
+  else if (COGL_CHECK_GL_VERSION (ctx->glsl_major, ctx->glsl_minor, 1, 4))
+    ctx->glsl_version_to_use = 140;
+  else if (COGL_CHECK_GL_VERSION (ctx->glsl_major, ctx->glsl_minor, 1, 3))
+    ctx->glsl_version_to_use = 130;
+  else if (COGL_CHECK_GL_VERSION (ctx->glsl_major, ctx->glsl_minor, 1, 2))
     ctx->glsl_version_to_use = 120;
   else
     ctx->glsl_version_to_use = 110;