Index: src/sksl/SkSLParser.cpp |
diff --git a/src/sksl/SkSLParser.cpp b/src/sksl/SkSLParser.cpp |
index f9e7498ee5955975e000447fb30f4532290bf48b..b240e4501e98a1f4847cd8c00ca784d854ee9a31 100644 |
--- a/src/sksl/SkSLParser.cpp |
+++ b/src/sksl/SkSLParser.cpp |
@@ -185,8 +185,7 @@ |
this->expect(Token::SEMICOLON, "';'"); |
} |
-/* DIRECTIVE(#version) INT_LITERAL ("es" | "compatibility")? | |
- DIRECTIVE(#extension) IDENTIFIER COLON IDENTIFIER */ |
+/* DIRECTIVE(#version) INT_LITERAL | DIRECTIVE(#extension) IDENTIFIER COLON IDENTIFIER */ |
std::unique_ptr<ASTDeclaration> Parser::directive() { |
Token start; |
if (!this->expect(Token::DIRECTIVE, "a directive", &start)) { |
@@ -194,12 +193,7 @@ |
} |
if (start.fText == "#version") { |
this->expect(Token::INT_LITERAL, "a version number"); |
- Token next = this->peek(); |
- if (next.fText == "es" || next.fText == "compatibility") { |
- this->nextToken(); |
- } |
- // version is ignored for now; it will eventually become an error when we stop pretending |
- // to be GLSL |
+ // ignored for now |
return nullptr; |
} else if (start.fText == "#extension") { |
Token name; |