mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-18 02:52:47 +03:00
fix(gx): reset buffer index when discarding
This commit is contained in:
parent
5d294c5c2b
commit
eeda61c2d9
@ -368,6 +368,7 @@ char* CGxDeviceD3d::IBufLock(CGxBuf* buf) {
|
||||
} else {
|
||||
lockFlags = D3DLOCK_DISCARD;
|
||||
pool->Discard();
|
||||
buf->m_index = 0;
|
||||
pool->unk1C = buf->m_size;
|
||||
}
|
||||
} else if (pool->m_usage == GxPoolUsage_Dynamic) {
|
||||
|
Loading…
Reference in New Issue
Block a user