aurora: Properly clear GXTexObjs on shutdown

This commit is contained in:
Luke Street 2022-05-19 14:23:33 -07:00
parent 9c5dda1c7d
commit 36a7bfc464
1 changed files with 6 additions and 1 deletions

View File

@ -1279,7 +1279,12 @@ void shutdown() noexcept {
// TODO we should probably store this all in g_state.gx instead // TODO we should probably store this all in g_state.gx instead
sUniformBindGroupLayouts.clear(); sUniformBindGroupLayouts.clear();
sTextureBindGroupLayouts.clear(); sTextureBindGroupLayouts.clear();
g_gxState.textures.fill({}); for (auto& item : g_gxState.textures) {
item.texObj.ref.reset();
}
for (auto& item : g_gxState.tluts) {
item.ref.reset();
}
g_gxCachedShaders.clear(); g_gxCachedShaders.clear();
} }