applySkinInDecode belongs in the VertexTypeID, not in the options.

This commit is contained in:
Henrik Rydgård committed 2024-12-17 18:24:18 +01:00
1 parent ee2f221938
commit e74101a2fb
13 files changed
+64 -58

No files matched your search

+3 -3
View File
@@ -63,7 +63,7 @@ SoftwareDrawEngine::~SoftwareDrawEngine() {}
void SoftwareDrawEngine::NotifyConfigChanged() {
DrawEngineCommon::NotifyConfigChanged();
decOptions_.applySkinInDecode = true;
applySkinInDecode_ = true;
}
void SoftwareDrawEngine::Flush() {
@@ -973,8 +973,8 @@ bool TransformUnit::GetCurrentSimpleVertices(int count, std::vector<GPUDebugVert
VertexDecoder vdecoder;
VertexDecoderOptions options{};
options.applySkinInDecode = true;
vdecoder.SetVertexType(gstate.vertType, options);
u32 vertTypeID = GetVertTypeID(gstate.vertType, gstate.getUVGenMode(), true);
vdecoder.SetVertexType(vertTypeID, options);
if (!Memory::IsValidRange(gstate_c.vertexAddr, (indexUpperBound + 1) * vdecoder.VertexSize()))
return false;