feat(gx): clean up draw calls across gll and d3d backends

This commit is contained in:
fallenoak 2023-03-10 11:29:00 -06:00 committed by GitHub
parent d869c6d898
commit 02ddaa106f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 20 additions and 20 deletions

View file

@ -357,7 +357,7 @@ void CGxDeviceD3d::DeviceWM(EGxWM wm, uintptr_t param1, uintptr_t param2) {
// TODO
}
void CGxDeviceD3d::Draw(CGxBatch* batch, int32_t count) {
void CGxDeviceD3d::Draw(CGxBatch* batch, int32_t indexed) {
if (!this->m_context || this->intF5C) {
return;
}
@ -369,7 +369,7 @@ void CGxDeviceD3d::Draw(CGxBatch* batch, int32_t count) {
baseIndex = this->m_primVertexFormatBuf[0]->m_index / this->m_primVertexFormatBuf[0]->m_itemSize;
}
if (count) {
if (indexed) {
this->m_d3dDevice->DrawIndexedPrimitive(
CGxDeviceD3d::s_primitiveConversion[batch->m_primType],
baseIndex,