From 77a96c6742957596ccc85dd987ef1641a596f269 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 2 Apr 2008 00:10:58 +0000 Subject: [PATCH] log error before returning, not after git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52970 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/glcanvas.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/msw/glcanvas.cpp b/src/msw/glcanvas.cpp index ce18ac742a..7355383805 100644 --- a/src/msw/glcanvas.cpp +++ b/src/msw/glcanvas.cpp @@ -315,9 +315,10 @@ bool wxGLCanvas::SwapBuffers() { if ( !::SwapBuffers(m_hDC) ) { - return false; wxLogLastError(_T("SwapBuffers")); + return false; } + return true; } -- 2.50.0