瀏覽代碼

Update HMPLoader.cpp

Kim Kulling 3 年之前
父節點
當前提交
f217bd4b5f
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      code/AssetLib/HMP/HMPLoader.cpp

+ 4 - 1
code/AssetLib/HMP/HMPLoader.cpp

@@ -385,7 +385,10 @@ void HMPImporter::CreateOutputFaceList(unsigned int width, unsigned int height)
         for (unsigned int x = 0; x < width - 1; ++x, ++pcFaceOut) {
             pcFaceOut->mNumIndices = 4;
             pcFaceOut->mIndices = new unsigned int[4];
-            if ((offset + x + 1) >= upperBound){
+            if ((offset0 + x + 1) >= upperBound){
+                continue;
+            }
+            if ((offset1 + x + 1) >= upperBound){
                 continue;
             }