Allow grad texture ops in all shaders

Fixes #2551
This commit is contained in:
Greg Fischer 2021-03-01 12:33:08 -07:00
parent 42ddfbd3d5
commit 740def238e
3 changed files with 45 additions and 7 deletions

View file

@ -6538,7 +6538,7 @@ void TBuiltIns::addSamplingFunctions(TSampler sampler, const TString& typeName,
s.append(");\n");
// Add to the per-language set of built-ins
if (bias || lodClamp != 0) {
if (!grad && (bias || lodClamp != 0)) {
stageBuiltins[EShLangFragment].append(s);
stageBuiltins[EShLangCompute].append(s);
} else