mirror of
https://github.com/holub/mame
synced 2025-06-28 23:24:23 +03:00
destroy renderer when needed (nw)
This commit is contained in:
parent
f2c514989f
commit
ed07fd70ed
@ -1477,6 +1477,7 @@ LRESULT CALLBACK win_window_info::video_window_proc(HWND wnd, UINT message, WPAR
|
|||||||
|
|
||||||
// destroy: clean up all attached rendering bits and nullptr out our hwnd
|
// destroy: clean up all attached rendering bits and nullptr out our hwnd
|
||||||
case WM_DESTROY:
|
case WM_DESTROY:
|
||||||
|
global_free(window->m_renderer);
|
||||||
window->m_renderer = nullptr;
|
window->m_renderer = nullptr;
|
||||||
window->m_hwnd = nullptr;
|
window->m_hwnd = nullptr;
|
||||||
return DefWindowProc(wnd, message, wparam, lparam);
|
return DefWindowProc(wnd, message, wparam, lparam);
|
||||||
|
Loading…
Reference in New Issue
Block a user