Fix some glitches that were caused by the MH glitch fix (wrong prim..). Also some cleanup.

This commit is contained in:
Henrik Rydgard committed 2013-03-24 01:13:02 +01:00
1 parent 1a09ce0f12
commit 57e82619ca
5 files changed
+85 -86

No files matched your search

+1 -1
View File
@@ -717,7 +717,7 @@ void GetIndexBounds(void *inds, int count, u32 vertType, u16 *indexLowerBound, u
*indexUpperBound = (u16)upperBound;
}
void VertexDecoder::DecodeVerts(u8 *decodedptr, const void *verts, int prim, int indexLowerBound, int indexUpperBound) const {
void VertexDecoder::DecodeVerts(u8 *decodedptr, const void *verts, int indexLowerBound, int indexUpperBound) const {
// Decode the vertices within the found bounds, once each
decoded_ = decodedptr; // + lowerBound * decFmt.stride;
ptr_ = (const u8*)verts + indexLowerBound * size;