diff --git a/src/scripts/graphics.lua b/src/scripts/graphics.lua index e10917d3c..628cb2159 100644 --- a/src/scripts/graphics.lua +++ b/src/scripts/graphics.lua @@ -1290,6 +1290,7 @@ do #define Image sampler2D #define extern uniform #define Texel texture2D + layout(origin_upper_left) in vec4 gl_FragCoord; uniform sampler2D _tex0_;]] local footer = [[void main() { // fix weird crashing issue in OSX when _tex0_ is unused within effect() diff --git a/src/scripts/graphics.lua.h b/src/scripts/graphics.lua.h index 84b0b2535..83ee2313a 100644 --- a/src/scripts/graphics.lua.h +++ b/src/scripts/graphics.lua.h @@ -6273,6 +6273,9 @@ const unsigned char graphics_lua[] = 0x6e, 0x69, 0x66, 0x6f, 0x72, 0x6d, 0x0a, 0x09, 0x09, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x54, 0x65, 0x78, 0x65, 0x6c, 0x20, 0x74, 0x65, 0x78, 0x74, 0x75, 0x72, 0x65, 0x32, 0x44, 0x0a, + 0x09, 0x09, 0x6c, 0x61, 0x79, 0x6f, 0x75, 0x74, 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x5f, 0x75, 0x70, + 0x70, 0x65, 0x72, 0x5f, 0x6c, 0x65, 0x66, 0x74, 0x29, 0x20, 0x69, 0x6e, 0x20, 0x76, 0x65, 0x63, 0x34, 0x20, + 0x67, 0x6c, 0x5f, 0x46, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6f, 0x72, 0x64, 0x3b, 0x0a, 0x09, 0x09, 0x75, 0x6e, 0x69, 0x66, 0x6f, 0x72, 0x6d, 0x20, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x32, 0x44, 0x20, 0x5f, 0x74, 0x65, 0x78, 0x30, 0x5f, 0x3b, 0x5d, 0x5d, 0x0a, 0x09, 0x09, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x66, 0x6f, 0x6f, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x5b,