diff options
author | Neil Roberts <[email protected]> | 2019-07-10 13:04:01 +0200 |
---|---|---|
committer | Neil Roberts <[email protected]> | 2019-07-11 08:04:54 +0200 |
commit | eae06b34ea192360dc97c1b1b90511efb5d70a5c (patch) | |
tree | a5b3f8b0124b0e1fb22c1226df53e809fd518f9d | |
parent | 74d71dac20f151fb3904ee83f6e6159a491dc9db (diff) |
glsl/builtin types: Set the precision on the depth range params
The members of gl_DepthRangeParameters are declared to be highp in
GLSL ES specs.
Reviewed-by: Eric Anholt <[email protected]>
-rw-r--r-- | src/compiler/glsl/builtin_types.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/glsl/builtin_types.cpp b/src/compiler/glsl/builtin_types.cpp index b29d71fa0a5..d3a28acf27b 100644 --- a/src/compiler/glsl/builtin_types.cpp +++ b/src/compiler/glsl/builtin_types.cpp @@ -53,9 +53,9 @@ &glsl_type::_struct_##NAME##_type; static const struct glsl_struct_field gl_DepthRangeParameters_fields[] = { - glsl_struct_field(glsl_type::float_type, "near"), - glsl_struct_field(glsl_type::float_type, "far"), - glsl_struct_field(glsl_type::float_type, "diff"), + glsl_struct_field(glsl_type::float_type, GLSL_PRECISION_HIGH, "near"), + glsl_struct_field(glsl_type::float_type, GLSL_PRECISION_HIGH, "far"), + glsl_struct_field(glsl_type::float_type, GLSL_PRECISION_HIGH, "diff"), }; static const struct glsl_struct_field gl_PointParameters_fields[] = { |