~libmatrix-dev/libmatrix/trunk

« back to all changes in this revision

Viewing changes to shader-source.cc

  • Committer: Jesse Barker
  • Date: 2013-05-23 21:01:51 UTC
  • Revision ID: jesse.barker@linaro.org-20130523210151-2q7ltv21qhnuwf3h
ShaderSource: Parse precision strings using fuzzy split to allow spaces.

Show diffs side-by-side

added added

removed removed

Lines of Context:
589
589
{
590
590
    std::vector<std::string> elems;
591
591
 
592
 
    Util::split(precision_values, ',', elems, Util::SplitModeNormal);
 
592
    Util::split(precision_values, ',', elems, Util::SplitModeFuzzy);
593
593
 
594
594
    for (size_t i = 0; i < elems.size() && i < 4; i++) {
595
595
        const std::string& pstr(elems[i]);