Lines 417-425
Link Here
|
417 |
} |
417 |
} |
418 |
|
418 |
|
419 |
if (COGL_CHECK_GL_VERSION (ctx->glsl_major, ctx->glsl_minor, 1, 2)) |
419 |
if (COGL_CHECK_GL_VERSION (ctx->glsl_major, ctx->glsl_minor, 1, 2)) |
420 |
/* We want to use version 120 if it is available so that the |
420 |
{ |
421 |
* gl_PointCoord can be used. */ |
421 |
if (ctx->gpu.vendor == COGL_GPU_INFO_VENDOR_ATI) |
422 |
ctx->glsl_version_to_use = 120; |
422 |
{ |
|
|
423 |
/* The AMD/ATI fglrx driver requires GLSL 1.50 in order to |
424 |
* use a forward compatible GL3 context. |
425 |
* |
426 |
* See: https://bugzilla.gnome.org/show_bug.cgi?id=756306 |
427 |
*/ |
428 |
ctx->glsl_version_to_use = 150; |
429 |
} |
430 |
else |
431 |
{ |
432 |
/* We want to use version 120 if it is available so that the |
433 |
* gl_PointCoord can be used. */ |
434 |
ctx->glsl_version_to_use = 120; |
435 |
} |
436 |
} |
423 |
else |
437 |
else |
424 |
ctx->glsl_version_to_use = 110; |
438 |
ctx->glsl_version_to_use = 110; |
425 |
|
439 |
|
426 |
- |
|
|