diff options
author | Don Bright <hugh.m.bright@gmail.com> | 2011-10-10 04:47:42 (GMT) |
---|---|---|
committer | Don Bright <hugh.m.bright@gmail.com> | 2011-10-10 04:47:42 (GMT) |
commit | a010b7b74702ee2499bf1a2399d7792d3ec6c3b6 (patch) | |
tree | 20fbd2c365c8dc313beae5d1d69cd60ca463585f /tests | |
parent | b2f193d631c2fbbab4536fab8c209d286eef5923 (diff) |
reorder destruction of window to proper position
Diffstat (limited to 'tests')
-rw-r--r-- | tests/OffscreenContext.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/OffscreenContext.cc b/tests/OffscreenContext.cc index 4b66501..9feaecc 100644 --- a/tests/OffscreenContext.cc +++ b/tests/OffscreenContext.cc @@ -123,8 +123,8 @@ bool create_glx_dummy_window(OffscreenContext &ctx) if (!glXMakeContextCurrent( dpy, xWin, xWin, context )) { cerr << "glXMakeContextCurrent failed\n"; - XDestroyWindow( dpy, xWin ); glXDestroyContext( dpy, context ); + XDestroyWindow( dpy, xWin ); XFree( visinfo ); XFree( fbconfigs ); return false; |