log error before returning, not after

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52970 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-04-02 00:10:58 +00:00
parent 140d4f0f9c
commit 77a96c6742

View File

@@ -315,9 +315,10 @@ bool wxGLCanvas::SwapBuffers()
{
if ( !::SwapBuffers(m_hDC) )
{
return false;
wxLogLastError(_T("SwapBuffers"));
return false;
}
return true;
}