Apple's OpenGL drivers are sad

Apparently they cant handle non-sequential binding locations. Sigh.
This commit is contained in:
Kovid Goyal 2017-10-12 15:36:38 +05:30
parent 30baf81858
commit 555409ea73
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 4 additions and 4 deletions

View File

@ -14,9 +14,9 @@ layout(std140) uniform CellRenderData {
// Have to use fixed locations here as all variants of the cell program share the same VAO
// locations 0 and 1 are used in the graphics program which also shares the same VAO
layout(location=2) in uvec3 colors;
layout(location=3) in uvec4 sprite_coords;
layout(location=4) in float is_selected;
layout(location=0) in uvec3 colors;
layout(location=1) in uvec4 sprite_coords;
layout(location=2) in float is_selected;
#if defined(FOREGROUND) || defined(ALL)

View File

@ -1,6 +1,6 @@
#version 330
layout(location=0) in vec4 src;
layout(location=3) in vec4 src;
out vec2 texcoord;
void main() {