Index: src/sksl/SkSLGLSLCodeGenerator.cpp |
diff --git a/src/sksl/SkSLGLSLCodeGenerator.cpp b/src/sksl/SkSLGLSLCodeGenerator.cpp |
index 8e69a2f0527c4174472a72233ff26403c2b0f9ab..20a39cf729e2b3700be036191a5bfa6501e8ec17 100644 |
--- a/src/sksl/SkSLGLSLCodeGenerator.cpp |
+++ b/src/sksl/SkSLGLSLCodeGenerator.cpp |
@@ -68,7 +68,7 @@ void GLSLCodeGenerator::writeType(const Type& type) { |
for (const auto& f : type.fields()) { |
this->writeModifiers(f.fModifiers); |
// sizes (which must be static in structs) are part of the type name here |
- this->writeType(f.fType); |
+ this->writeType(*f.fType); |
this->writeLine(" " + f.fName + ";"); |
} |
fIndentation--; |
@@ -306,7 +306,7 @@ void GLSLCodeGenerator::writeInterfaceBlock(const InterfaceBlock& intf) { |
fIndentation++; |
for (const auto& f : intf.fVariable.fType.fields()) { |
this->writeModifiers(f.fModifiers); |
- this->writeType(f.fType); |
+ this->writeType(*f.fType); |
this->writeLine(" " + f.fName + ";"); |
} |
fIndentation--; |