Fix crash: when no #version for compute shader in es mode.

An extra line of error recovery code set a non-sense combination of
es version and core profile.
This commit is contained in:
John Kessenich 2015-12-13 11:20:12 -07:00
parent 61d9fb9048
commit f5ce646546
2 changed files with 1 additions and 2 deletions

View file

@ -386,7 +386,6 @@ bool DeduceVersionProfile(TInfoSink& infoSink, EShLanguage stage, bool versionNo
correct = false;
infoSink.info.message(EPrefixError, "#version: compute shaders require es profile with version 310 or above, or non-es profile with version 420 or above");
version = profile == EEsProfile ? 310 : 430; // 420 supports the extension, correction is to 430 which does not
profile = ECoreProfile;
}
break;
default: