glsl: copy each field's precision information when generating varying variables
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Mon, 16 Nov 2015 11:01:37 +0000 (12:01 +0100)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Tue, 17 Nov 2015 09:36:42 +0000 (10:36 +0100)
Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/glsl/builtin_variables.cpp

index b927d506faf50414bb9dee3c29278d3ce3f847a0..fc7a3c3f64cc07220538071f0d1d6702e2fc6f66 100644 (file)
@@ -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);
       }
    }