2
0
Эх сурвалжийг харах

Merge pull request #2886 from greg-lunarg/i2875

Fix sameElementShape test of sampler
Greg Fischer 3 жил өмнө
parent
commit
b7ba87bcfe

+ 1 - 1
glslang/Include/Types.h

@@ -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 &&