Skip to content

Commit 69b095d

Browse files
authored
Update DirectiveHandler.cpp
1 parent 1cac3e8 commit 69b095d

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

src/compiler/translator/DirectiveHandler.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,6 @@ void TDirectiveHandler::handleVersion(const angle::pp::SourceLocation &loc,
308308
ShShaderSpec spec,
309309
angle::pp::MacroSet *macro_set)
310310
{
311-
if (version == 100 || version == 300 || version == 310 || version == 320)
312-
{
313311
mContext.onShaderVersionDeclared(version);
314312

315313
// Add macros for supported extensions
@@ -325,14 +323,7 @@ void TDirectiveHandler::handleVersion(const angle::pp::SourceLocation &loc,
325323
PredefineMacro(macro_set, GetExtensionNameString(iter.first), 1);
326324
}
327325
}
328-
}
329-
else
330-
{
331-
std::stringstream stream = sh::InitializeStream<std::stringstream>();
332-
stream << version;
333-
std::string str = stream.str();
334-
mDiagnostics.error(loc, "client/version number not supported", str.c_str());
335-
}
326+
336327
}
337328

338329
} // namespace sh

0 commit comments

Comments
 (0)