[jak2] fix bug in direct in texture handler (#2910)

This commit is contained in:
water111 2023-08-16 18:31:40 -04:00 committed by GitHub
parent f5b771174e
commit 22c12c54ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,8 +78,11 @@ void TextureUploadHandler::render(DmaFollower& dma,
// on next
ASSERT(dma.current_tag_offset() == render_state->next_bucket);
} else if (m_direct) {
m_direct->render_vif(data.vif0(), data.vif1(), data.data, data.size_bytes, render_state,
prof);
if (data.vifcode0().kind == VifCode::Kind::DIRECT ||
data.vifcode1().kind == VifCode::Kind::DIRECT) {
m_direct->render_vif(data.vif0(), data.vif1(), data.data, data.size_bytes, render_state,
prof);
}
}
}