Handle wordcount varying between DRef and other image sample ops

This commit is contained in:
baldurk
2016-02-07 18:51:34 +01:00
parent c5e32d47c4
commit 8bc3768ec0
@@ -4033,7 +4033,7 @@ void ParseSPIRV(uint32_t *spirv, size_t spirvLength, SPVModule &module)
// const argument bitfield
uint32_t imMask = 0;
if(WordCount > 5)
if(WordCount > idx)
{
imMask = spirv[it+idx];
idx++;