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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user