fix(gx): walk dirty states backward when syncing

This commit is contained in:
fallenoak committed 2023-04-09 22:41:02 -05:00
1 parent ecf0c43e70
commit 30964bf827
1 file changed
+1 -1
+1 -1
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];