summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2010-11-16 16:21:20 -0800
committerKenneth Graunke <[email protected]>2010-11-16 16:22:12 -0800
commit3fb83038a05bfcbc41e649b0b6c1a2c6ff41124c (patch)
tree46b6c0bb3e8fb1abef96f06fe1f342003374da85 /src/glsl
parent6bbe637c1307001d4e6d6acb3d91da029d8fde98 (diff)
glcpp: Define GL_FRAGMENT_PRECISION_HIGH if GLSL version >= 1.30.
Per section 4.5.4 of the GLSL 1.30 specification.
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/glcpp/glcpp-parse.y3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/glcpp/glcpp-parse.y b/src/glsl/glcpp/glcpp-parse.y
index b31a18f87dc..b69035a410a 100644
--- a/src/glsl/glcpp/glcpp-parse.y
+++ b/src/glsl/glcpp/glcpp-parse.y
@@ -320,6 +320,9 @@ control_line:
if ($2 == 100)
add_builtin_define (parser, "GL_ES", 1);
+ if ($2 >= 130)
+ add_builtin_define (parser, "GL_FRAGMENT_PRECISION_HIGH", 1);
+
glcpp_printf(parser->output, "#version %" PRIiMAX, $2);
}
| HASH NEWLINE