Module: wine Branch: master Commit: e915cfd4e7ca78369a17172891b5a5f8e442d880 URL: http://source.winehq.org/git/wine.git/?a=commit;h=e915cfd4e7ca78369a17172891...
Author: Sebastian Lackner sebastian@fds-team.de Date: Sat Sep 28 04:35:17 2013 +0200
winex11: Call destroy_gl_drawable before destroying the window.
---
dlls/winex11.drv/window.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c index 1ff36eb..741a303 100644 --- a/dlls/winex11.drv/window.c +++ b/dlls/winex11.drv/window.c @@ -1598,6 +1598,8 @@ void CDECL X11DRV_DestroyWindow( HWND hwnd ) struct x11drv_thread_data *thread_data = x11drv_thread_data(); struct x11drv_win_data *data;
+ destroy_gl_drawable( hwnd ); + if (!(data = get_win_data( hwnd ))) return;
destroy_whole_window( data, FALSE ); @@ -1609,7 +1611,6 @@ void CDECL X11DRV_DestroyWindow( HWND hwnd ) XDeleteContext( gdi_display, (XID)hwnd, win_data_context ); release_win_data( data ); HeapFree( GetProcessHeap(), 0, data ); - destroy_gl_drawable( hwnd ); }