Message ID | 20111212124113.30078.58933.launchpad@ackee.canonical.com |
---|---|
State | Accepted |
Headers | show |
=== modified file 'src/shader-source.cpp' --- src/shader-source.cpp 2011-11-29 10:36:37 +0000 +++ src/shader-source.cpp 2011-12-12 12:39:00 +0000 @@ -457,10 +457,13 @@ /* Decide which precision values to use */ ShaderSource::Precision precision; + /* Ensure we have tried to infer the type from the contents */ + type(); + if (precision_has_been_set_) precision = precision_; else - precision = default_precision(type()); + precision = default_precision(type_); /* Create the precision statements */ std::stringstream ss;