Quellcode durchsuchen

Merge pull request #2886 from greg-lunarg/i2875

Fix sameElementShape test of sampler
Greg Fischer vor 3 Jahren
Ursprung
Commit
b7ba87bcfe
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      glslang/Include/Types.h

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