mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-08 11:30:06 +00:00
Fix sameElementShape test of sampler
There is apparently a hole in the initialization of sampler in TType so that a simple comparison which should pass might fail. Until the hole is found, also test that both types are samplers before comparing the sampler field for equality. Fixes #2875
This commit is contained in:
parent
2742e95934
commit
c5072a8cab
@ -2703,7 +2703,7 @@ public:
|
||||
*lpidx = -1;
|
||||
*rpidx = -1;
|
||||
}
|
||||
return sampler == right.sampler &&
|
||||
return ((basicType != EbtSampler && right.basicType != EbtSampler) || sampler == right.sampler) &&
|
||||
vectorSize == right.vectorSize &&
|
||||
matrixCols == right.matrixCols &&
|
||||
matrixRows == right.matrixRows &&
|
||||
|
Loading…
Reference in New Issue
Block a user