Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7299c83b authored by Jason Sams's avatar Jason Sams
Browse files

Fix bug exposed by filmstrip. The updated and expanded SimpleMesh had an...

Fix bug exposed by filmstrip.  The updated and expanded SimpleMesh had an ordering bug with component coordinates when both texture and normals were used.
parent 0b08abe1
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -228,17 +228,17 @@ public class SimpleMesh extends BaseObj {
                mVtxData[mVtxCount++] = mB;
                mVtxData[mVtxCount++] = mA;
            }
            if ((mFlags & TEXTURE_0) != 0) {
                makeSpace(2);
                mVtxData[mVtxCount++] = mS0;
                mVtxData[mVtxCount++] = mT0;
            }
            if ((mFlags & NORMAL) != 0) {
                makeSpace(3);
                mVtxData[mVtxCount++] = mNX;
                mVtxData[mVtxCount++] = mNY;
                mVtxData[mVtxCount++] = mNZ;
            }
            if ((mFlags & TEXTURE_0) != 0) {
                makeSpace(2);
                mVtxData[mVtxCount++] = mS0;
                mVtxData[mVtxCount++] = mT0;
            }
        }

        public void addVertex(float x, float y) {