[Scummvm-git-logs] scummvm master -> 87ef8d1391b1804d75c37e5f6ee52a9fd312f5a8

aquadran noreply at scummvm.org
Wed Oct 23 05:49:03 UTC 2024


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
87ef8d1391 WINTERMUTE: Revert back to previous face indices order


Commit: 87ef8d1391b1804d75c37e5f6ee52a9fd312f5a8
    https://github.com/scummvm/scummvm/commit/87ef8d1391b1804d75c37e5f6ee52a9fd312f5a8
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2024-10-23T07:48:57+02:00

Commit Message:
WINTERMUTE: Revert back to previous face indices order

Changed paths:
    engines/wintermute/base/gfx/xskinmesh.cpp


diff --git a/engines/wintermute/base/gfx/xskinmesh.cpp b/engines/wintermute/base/gfx/xskinmesh.cpp
index 41b43ac68c1..bd6c2f2b0af 100644
--- a/engines/wintermute/base/gfx/xskinmesh.cpp
+++ b/engines/wintermute/base/gfx/xskinmesh.cpp
@@ -1122,17 +1122,17 @@ bool DXLoadSkinMesh(XFileData *fileData, DXBuffer &materialsOut, uint32 &numMate
 	for (i = 0; i < meshData._numPolyFaces; i++) {
 		uint32 count = meshData._numTriPerFace[i];
 		uint32 firstIndex = *indexInPtr++;
-		// 1 -> 1
-		// 2 -> 2
-		// 3 -> 3
-		// 1 -> 4
-		// 3 -> 5
-		// 4 -> 6
+		// 1 -> 1 -> 3
+		// 2 -> 2 -> 2
+		// 3 -> 3 -> 1
+		// 1 -> 4 -> 6
+		// 3 -> 5 -> 5
+		// 4 -> 6 -> 4
 		while (count--) {
-			*indices++ = firstIndex;
-			*indices++ = *indexInPtr;
-			indexInPtr++;
-			*indices++ = *indexInPtr;
+			indices[2] = firstIndex;
+			indices[1] = *indexInPtr++;
+			indices[0] = *indexInPtr;
+			indices += 3;
 		}
 		indexInPtr++;
 	}




More information about the Scummvm-git-logs mailing list