summaryrefslogtreecommitdiffstats
path: root/src/glsl/builtin_variables.cpp
diff options
context:
space:
mode:
authorSamuel Iglesias Gonsálvez <[email protected]>2015-11-16 12:01:37 +0100
committerSamuel Iglesias Gonsálvez <[email protected]>2015-11-17 10:36:42 +0100
commitcfe32cfa8ed0cb2b41be8e63ddab9f68f2cc63de (patch)
tree6e30246364a56ef1c2582373993ffa7c2273584f /src/glsl/builtin_variables.cpp
parent91eefe850531adf7e1ed527e4b5bcb4a1f8c5d63 (diff)
glsl: copy each field's precision information when generating varying variables
Signed-off-by: Samuel Iglesias Gonsálvez <[email protected]> Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/glsl/builtin_variables.cpp')
-rw-r--r--src/glsl/builtin_variables.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/builtin_variables.cpp b/src/glsl/builtin_variables.cpp
index b927d506faf..fc7a3c3f64c 100644
--- a/src/glsl/builtin_variables.cpp
+++ b/src/glsl/builtin_variables.cpp
@@ -1187,6 +1187,7 @@ builtin_variable_generator::generate_varyings()
var->data.centroid = fields[i].centroid;
var->data.sample = fields[i].sample;
var->data.patch = fields[i].patch;
+ var->data.precision = fields[i].precision;
var->init_interface_type(per_vertex_out_type);
}
}