glcpp: Define GL_FRAGMENT_PRECISION_HIGH if GLSL version >= 1.30.

Per section 4.5.4 of the GLSL 1.30 specification.
This commit is contained in:
Kenneth Graunke
2010-11-16 16:21:20 -08:00
parent 6bbe637c13
commit 3fb83038a0

View File

@@ -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