Commit d71948f8 by Nicolas Capens

Compile fixes for JBMR2.

Change-Id: I121abb32d898f5887586680b52c4283ee6e58f96 Reviewed-on: https://swiftshader-review.googlesource.com/3472Tested-by: 's avatarNicolas Capens <capn@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent 94352d96
...@@ -63,6 +63,7 @@ inline TFieldList *NewPoolTFieldList() ...@@ -63,6 +63,7 @@ inline TFieldList *NewPoolTFieldList()
class TFieldListCollection class TFieldListCollection
{ {
public: public:
virtual ~TFieldListCollection() { }
const TString &name() const const TString &name() const
{ {
return *mName; return *mName;
......
...@@ -2534,9 +2534,9 @@ namespace es2 ...@@ -2534,9 +2534,9 @@ namespace es2
if(uniformBlock.isArrayElement()) if(uniformBlock.isArrayElement())
{ {
string += "["; std::ostringstream elementIndex;
string += std::to_string(uniformBlock.elementIndex); elementIndex << uniformBlock.elementIndex;
string += "]"; string += "[" + elementIndex.str() + "]";
} }
strncpy(name, string.c_str(), bufSize); strncpy(name, string.c_str(), bufSize);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment