mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
feat(gx): sync index buffer in d3d backend
This commit is contained in:
parent
38380ebc35
commit
6723f810ed
2 changed files with 13 additions and 1 deletions
|
|
@ -950,7 +950,18 @@ void CGxDeviceD3d::IStateSyncEnables() {
|
|||
}
|
||||
|
||||
void CGxDeviceD3d::IStateSyncIndexPtr() {
|
||||
// TODO
|
||||
if (!this->m_primIndexDirty) {
|
||||
return;
|
||||
}
|
||||
|
||||
this->m_primIndexDirty = 0;
|
||||
|
||||
auto d3dIndexBuf = static_cast<LPDIRECT3DINDEXBUFFER9>(this->m_primIndexBuf->m_pool->m_apiSpecific);
|
||||
|
||||
if (this->m_d3dCurrentIndexBuf != d3dIndexBuf) {
|
||||
this->m_d3dDevice->SetIndices(d3dIndexBuf);
|
||||
this->m_d3dCurrentIndexBuf = d3dIndexBuf;
|
||||
}
|
||||
}
|
||||
|
||||
void CGxDeviceD3d::IStateSyncVertexPtrs() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue