Advertisement
Guest User

cogl-patch.patch

a guest
Oct 18th, 2016
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.92 KB | None | 0 0
  1. --- 1222/cogl/driver/gl/gl/cogl-driver-gl.c 2016-10-17 18:16:05.638995324 +0200
  2. +++ 1222b/cogl/driver/gl/gl/cogl-driver-gl.c    2016-10-17 18:23:58.703175772 +0200
  3. @@ -416,9 +416,14 @@
  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. +
  11. +  if (COGL_CHECK_GL_VERSION (ctx->glsl_major, ctx->glsl_minor, 1, 5))
  12. +    ctx->glsl_version_to_use = 150;
  13. +  else if (COGL_CHECK_GL_VERSION (ctx->glsl_major, ctx->glsl_minor, 1, 4))
  14. +    ctx->glsl_version_to_use = 140;
  15. +  else if (COGL_CHECK_GL_VERSION (ctx->glsl_major, ctx->glsl_minor, 1, 3))
  16. +    ctx->glsl_version_to_use = 130;
  17. +  else if (COGL_CHECK_GL_VERSION (ctx->glsl_major, ctx->glsl_minor, 1, 2))
  18.      ctx->glsl_version_to_use = 120;
  19.    else
  20.      ctx->glsl_version_to_use = 110;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement