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:
@@ -315,9 +315,10 @@ bool wxGLCanvas::SwapBuffers()
|
|||||||
{
|
{
|
||||||
if ( !::SwapBuffers(m_hDC) )
|
if ( !::SwapBuffers(m_hDC) )
|
||||||
{
|
{
|
||||||
return false;
|
|
||||||
wxLogLastError(_T("SwapBuffers"));
|
wxLogLastError(_T("SwapBuffers"));
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user