Pass the VertexDecoder pointer around

This commit is contained in:
Henrik Rydgård committed 2024-12-17 18:24:26 +01:00
1 parent e74101a2fb
commit 20ecbfdf57
8 files changed
+19 -18

No files matched your search

+2 -2
View File
@@ -256,7 +256,7 @@ void DrawEngineDX9::Flush() {
int vertexCount;
int maxIndex;
bool useElements;
DecodeVerts(decoded_);
DecodeVerts(dec_, decoded_);
DecodeIndsAndGetData(&prim, &vertexCount, &maxIndex, &useElements, false);
gpuStats.numUncachedVertsDrawn += vertexCount;
@@ -306,7 +306,7 @@ void DrawEngineDX9::Flush() {
lastVType_ |= (1 << 26);
dec_ = GetVertexDecoder(lastVType_);
}
DecodeVerts(decoded_);
DecodeVerts(dec_, decoded_);
int vertexCount = DecodeInds();
bool hasColor = (lastVType_ & GE_VTYPE_COL_MASK) != GE_VTYPE_COL_NONE;