Skip to content

Commit

Permalink
Bugfix: Add precision modifiers to floating point uniform arrays too.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris McEvoy committed Oct 17, 2011
1 parent 54eb715 commit edcb87a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/glsl/ir_print_glsl_visitor.cpp
Expand Up @@ -208,7 +208,7 @@ void ir_print_glsl_visitor::print_precision (ir_instruction* ir)
{
if (!this->use_precision)
return;
if (ir->type && !ir->type->is_float())
if (ir->type && !ir->type->is_float() && (!ir->type->is_array() || !ir->type->element_type()->is_float()))
return;
glsl_precision prec = precision_from_ir(ir);
if (prec == glsl_precision_high || prec == glsl_precision_undefined)
Expand Down

0 comments on commit edcb87a

Please sign in to comment.