mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
fix(gx): reset buffer index when discarding
This commit is contained in:
parent
5d294c5c2b
commit
eeda61c2d9
1 changed files with 1 additions and 0 deletions
|
|
@ -368,6 +368,7 @@ char* CGxDeviceD3d::IBufLock(CGxBuf* buf) {
|
||||||
} else {
|
} else {
|
||||||
lockFlags = D3DLOCK_DISCARD;
|
lockFlags = D3DLOCK_DISCARD;
|
||||||
pool->Discard();
|
pool->Discard();
|
||||||
|
buf->m_index = 0;
|
||||||
pool->unk1C = buf->m_size;
|
pool->unk1C = buf->m_size;
|
||||||
}
|
}
|
||||||
} else if (pool->m_usage == GxPoolUsage_Dynamic) {
|
} else if (pool->m_usage == GxPoolUsage_Dynamic) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue