Fix dref explicit LOD form of sample with cube texture arrays

The dref parameter was being used as the LOD.  Now it it's properly the dref.
This commit is contained in:
LoopDawg
2017-07-24 18:45:37 -06:00
parent 53863a3a90
commit ef94b1a5ca
2 changed files with 5 additions and 5 deletions

View File

@@ -3345,7 +3345,7 @@ spv::Id TGlslangToSpvTraverser::createImageTextureFunctionCall(glslang::TIntermO
// lod
if (cracked.lod) {
params.lod = arguments[2];
params.lod = arguments[2 + extraArgs];
++extraArgs;
} else if (glslangIntermediate->getStage() != EShLangFragment) {
// we need to invent the default lod for an explicit lod instruction for a non-fragment stage
@@ -3354,7 +3354,7 @@ spv::Id TGlslangToSpvTraverser::createImageTextureFunctionCall(glslang::TIntermO
// multisample
if (sampler.ms) {
params.sample = arguments[2]; // For MS, "sample" should be specified
params.sample = arguments[2 + extraArgs]; // For MS, "sample" should be specified
++extraArgs;
}