mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
gpu: Don't use layout binding in old GL versions
GL needs version 4.2 before it supports explicit bindings. We use GLES usually, and Mesa supports GL 4.6, so we didn't hit this case before. However, MacOS does use GL and Mac OS is stuck on GL 4.1. Fixes #6363
This commit is contained in:
parent
979749a3bc
commit
d74855fe9f
@ -1,6 +1,6 @@
|
||||
precision highp float;
|
||||
|
||||
#if defined(GSK_GLES) && __VERSION__ < 310
|
||||
#if __VERSION__ < 420 || (defined(GSK_GLES) && __VERSION__ < 310)
|
||||
layout(std140)
|
||||
#else
|
||||
layout(std140, binding = 0)
|
||||
@ -17,7 +17,7 @@ uniform PushConstants
|
||||
#define GSK_GLOBAL_CLIP_RECT push.clip[0]
|
||||
#define GSK_GLOBAL_SCALE push.scale
|
||||
|
||||
#if defined(GSK_GLES) && __VERSION__ < 310
|
||||
#if __VERSION__ < 420 || (defined(GSK_GLES) && __VERSION__ < 310)
|
||||
layout(std140)
|
||||
#else
|
||||
layout(std140, binding = 1)
|
||||
|
Loading…
Reference in New Issue
Block a user