瀏覽代碼

Updated glslang.

Бранимир Караџић 5 年之前
父節點
當前提交
07583ddba2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      3rdparty/glslang/glslang/MachineIndependent/reflection.cpp

+ 1 - 1
3rdparty/glslang/glslang/MachineIndependent/reflection.cpp

@@ -639,7 +639,7 @@ public:
 
     int addBlockName(const TString& name, const TType& type, int size)
     {
-        int blockIndex;
+        int blockIndex = 0;
         if (type.isArray()) {
             TType derefType(type, 0);
             for (int e = 0; e < type.getOuterArraySize(); ++e) {