mirror of https://github.com/AxioDL/metaforce.git
aurora: Properly clear GXTexObjs on shutdown
This commit is contained in:
parent
9c5dda1c7d
commit
36a7bfc464
|
@ -1279,7 +1279,12 @@ void shutdown() noexcept {
|
|||
// TODO we should probably store this all in g_state.gx instead
|
||||
sUniformBindGroupLayouts.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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue