mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 17:49:29 +01:00
Pass the VertexDecoder pointer around
This commit is contained in:
1 parent
e74101a2fb
commit
20ecbfdf57
8 files changed
+19
-18
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user