Advertisement
Guest User

mutter-patch.patch

a guest
Oct 18th, 2016
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.93 KB | None | 0 0
  1. --- mutter3221/cogl/cogl/driver/gl/gl/cogl-driver-gl.c  2016-10-17 20:43:31.283749432 +0200
  2. +++ mutter3221b/cogl/cogl/driver/gl/gl/cogl-driver-gl.c 2016-10-17 20:47:44.000000000 +0200
  3. @@ -416,9 +416,13 @@
  4.                                        &ctx->glsl_minor);
  5.      }
  6.  
  7. -  if (COGL_CHECK_GL_VERSION (ctx->glsl_major, ctx->glsl_minor, 1, 2))
  8. -    /* We want to use version 120 if it is available so that the
  9. -     * gl_PointCoord can be used. */
  10. +  if (COGL_CHECK_GL_VERSION (ctx->glsl_major, ctx->glsl_minor, 1, 5))
  11. +    ctx->glsl_version_to_use = 150;
  12. +  else if (COGL_CHECK_GL_VERSION (ctx->glsl_major, ctx->glsl_minor, 1, 4))
  13. +    ctx->glsl_version_to_use = 140;
  14. +  else if (COGL_CHECK_GL_VERSION (ctx->glsl_major, ctx->glsl_minor, 1, 3))
  15. +    ctx->glsl_version_to_use = 130;
  16. +  else if (COGL_CHECK_GL_VERSION (ctx->glsl_major, ctx->glsl_minor, 1, 2))
  17.      ctx->glsl_version_to_use = 120;
  18.    else
  19.      ctx->glsl_version_to_use = 110;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement