]> git.saurik.com Git - wxWidgets.git/commitdiff
log error before returning, not after
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 2 Apr 2008 00:10:58 +0000 (00:10 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 2 Apr 2008 00:10:58 +0000 (00:10 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52970 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/glcanvas.cpp

index ce18ac742a25adde2cdde7212047a2f52f2b6979..73553838057df90ef0154b98c7ea1c60f7da5bfc 100644 (file)
@@ -315,9 +315,10 @@ bool wxGLCanvas::SwapBuffers()
 {
     if ( !::SwapBuffers(m_hDC) )
     {
-        return false;
         wxLogLastError(_T("SwapBuffers"));
+        return false;
     }
+
     return true;
 }