瀏覽代碼

Merge pull request #2886 from greg-lunarg/i2875

Fix sameElementShape test of sampler
Greg Fischer 3 年之前
父節點
當前提交
b7ba87bcfe
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 &&