commit | 6feb4989fe77da338abb49b4b2d3e28197b6dd79 | [log] [tgz] |
---|---|---|
author | John Kessenich <cepheus@frii.com> | Sun Dec 13 12:23:33 2015 -0700 |
committer | John Kessenich <cepheus@frii.com> | Sun Dec 13 12:23:33 2015 -0700 |
tree | fd77d1fca042cfdabc6ce800bf5e3323e1e53b6f | |
parent | f5ce6465466a8a8b6dbfd802bd65ac927f1745aa [diff] [blame] |
SPV texturing: Use comp. 2 as the 3rd comp. for Dref in ImageSampleProjDrefImplicitLod.
diff --git a/SPIRV/GlslangToSpv.cpp b/SPIRV/GlslangToSpv.cpp index 3d589bd..78e9e6d 100755 --- a/SPIRV/GlslangToSpv.cpp +++ b/SPIRV/GlslangToSpv.cpp
@@ -1951,7 +1951,7 @@ std::vector<spv::Id> indexes; int comp; if (cracked.proj) - comp = 3; + comp = 2; // "The resulting 3rd component of P in the shadow forms is used as Dref" else comp = builder.getNumComponents(params.coords) - 1; indexes.push_back(comp);