Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- 1222/cogl/driver/gl/gl/cogl-driver-gl.c 2016-10-17 18:16:05.638995324 +0200
- +++ 1222b/cogl/driver/gl/gl/cogl-driver-gl.c 2016-10-17 18:23:58.703175772 +0200
- @@ -416,9 +416,14 @@
- &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;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement