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.

This commit is contained in:
Alex Szpakowski
2014-09-16 22:34:22 -03:00
parent 604bc34106
commit 417173b43a
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -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
+3
View File
@@ -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,