fix(gx): walk dirty states backward when syncing

This commit is contained in:
fallenoak 2023-04-09 22:40:17 -05:00
parent ecf0c43e70
commit 30964bf827
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -432,7 +432,7 @@ void CGxDevice::IRsSync(int32_t force) {
this->IRsForceUpdate();
}
for (int32_t i = 0; i < this->m_dirtyStates.Count(); i++) {
for (int32_t i = this->m_dirtyStates.Count() - 1; i >= 0; i--) {
auto ds = this->m_dirtyStates[i];
auto rs = &this->m_appRenderStates[ds];
auto hs = &this->m_hwRenderStates[ds];