diff options
Diffstat (limited to 'src/sksl/SkSLGLSLCodeGenerator.cpp')
-rw-r--r-- | src/sksl/SkSLGLSLCodeGenerator.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sksl/SkSLGLSLCodeGenerator.cpp b/src/sksl/SkSLGLSLCodeGenerator.cpp index bcf45ba7be..84c16d40f8 100644 --- a/src/sksl/SkSLGLSLCodeGenerator.cpp +++ b/src/sksl/SkSLGLSLCodeGenerator.cpp @@ -1089,6 +1089,11 @@ void GLSLCodeGenerator::writeVarDeclarations(const VarDeclarations& decl, bool g fHeader.writeText(fProgram.fSettings.fCaps->externalTextureExtensionString()); fHeader.writeText(" : require\n"); } + if (fProgram.fSettings.fCaps->secondExternalTextureExtensionString()) { + fHeader.writeText("#extension "); + fHeader.writeText(fProgram.fSettings.fCaps->secondExternalTextureExtensionString()); + fHeader.writeText(" : require\n"); + } fFoundExternalSamplerDecl = true; } } |