From 417173b43afd979fb26d948470e1aa226f78cdf1 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Tue, 16 Sep 2014 22:34:22 -0300 Subject: [PATCH] GLSL precision qualifiers (lowp, mediump, highp) can now be used for variables in shader code on desktops without causing a compile error, although they do nothing. --- src/scripts/graphics.lua | 3 +++ src/scripts/graphics.lua.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/scripts/graphics.lua b/src/scripts/graphics.lua index 7d83c5184..d80cc30db 100644 --- a/src/scripts/graphics.lua +++ b/src/scripts/graphics.lua @@ -1292,6 +1292,9 @@ do local GLSL_VERSION = "#version 120" local GLSL_SYNTAX = [[ +#define lowp +#define mediump +#define highp #define number float #define Image sampler2D #define extern uniform diff --git a/src/scripts/graphics.lua.h b/src/scripts/graphics.lua.h index d2218faaa..761236a4c 100644 --- a/src/scripts/graphics.lua.h +++ b/src/scripts/graphics.lua.h @@ -6269,6 +6269,9 @@ const unsigned char graphics_lua[] = 0x09, 0x0a, 0x09, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x47, 0x4c, 0x53, 0x4c, 0x5f, 0x53, 0x59, 0x4e, 0x54, 0x41, 0x58, 0x20, 0x3d, 0x20, 0x5b, 0x5b, 0x0a, + 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x6c, 0x6f, 0x77, 0x70, 0x0a, + 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x6d, 0x65, 0x64, 0x69, 0x75, 0x6d, 0x70, 0x0a, + 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x68, 0x69, 0x67, 0x68, 0x70, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x20, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x0a, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x20, 0x73, 0x61, 0x6d, 0x70,