Stop emitting the "#version missing" warning, and hook up the existing "suppress warnings" to a command-line option (-w).
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@23952 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
d627502d07
commit
b0a7eb599b
9 changed files with 46 additions and 21 deletions
|
|
@ -296,7 +296,7 @@ bool DeduceVersionProfile(TInfoSink& infoSink, EShLanguage stage, bool versionNo
|
|||
// Get a good version...
|
||||
if (version == 0) {
|
||||
version = defaultVersion;
|
||||
infoSink.info.message(EPrefixWarning, "#version: statement missing; use #version on first line of shader");
|
||||
// infoSink.info.message(EPrefixWarning, "#version: statement missing; use #version on first line of shader");
|
||||
}
|
||||
|
||||
// Get a good profile...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue