From eae06b34ea192360dc97c1b1b90511efb5d70a5c Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Wed, 10 Jul 2019 13:04:01 +0200 Subject: [PATCH] =?utf8?q?glsl/builtin=C2=A0types:=20Set=20the=20precision?= =?utf8?q?=20on=20the=20depth=20range=20params?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The members of gl_DepthRangeParameters are declared to be highp in GLSL ES specs. Reviewed-by: Eric Anholt --- src/compiler/glsl/builtin_types.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compiler/glsl/builtin_types.cpp b/src/compiler/glsl/builtin_types.cpp index b29d71f..d3a28ac 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[] = { -- 2.7.4