Message ID | 20111212125114.32763.76606.launchpad@ackee.canonical.com |
---|---|
State | Accepted |
Headers | show |
=== modified file 'src/shader-source.cc' --- src/shader-source.cc 2011-12-02 21:54:50 +0000 +++ src/shader-source.cc 2011-12-12 12:43:08 +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;