Clean up gl_query_core_context at the end of OpenGLRenderState's life

This commit is contained in:
Jesse Talavera-Greenberg 2024-01-04 08:08:40 -05:00
parent 5552f4d5f6
commit f3b188b594

View File

@ -185,6 +185,7 @@ MelonDsDs::OpenGLRenderState::~OpenGLRenderState() noexcept {
glsm_ctl(GLSM_CTL_STATE_UNBIND, nullptr);
}
glsm_ctl(GLSM_CTL_STATE_CONTEXT_DESTROY, nullptr);
gl_query_core_context_unset();
}
void MelonDsDs::OpenGLRenderState::ContextReset(melonDS::NDS& nds, const CoreConfig& config) {