Show the window in wxGLCanvasEGL tracing messages
This is useful when there is more than one window using EGL. (cherry picked from commit 547fb15c51b43b9486c6c5422a60a27fbf53eb43)
This commit is contained in:
parent
c4612cd1b9
commit
414faff190
@ -812,7 +812,7 @@ bool wxGLCanvasEGL::SwapBuffers()
|
||||
// Trying to draw on a hidden window is useless and can actually be
|
||||
// harmful if the compositor blocks in eglSwapBuffers() in this
|
||||
// case, so avoid it.
|
||||
wxLogTrace(TRACE_EGL, "Not drawing hidden window");
|
||||
wxLogTrace(TRACE_EGL, "Window %p is hidden, not drawing", this);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -825,7 +825,7 @@ bool wxGLCanvasEGL::SwapBuffers()
|
||||
// worst if we're called before the window is realized.
|
||||
if ( !m_readyToDraw )
|
||||
{
|
||||
wxLogTrace(TRACE_EGL, "Not ready to draw yet");
|
||||
wxLogTrace(TRACE_EGL, "Window %p is not not ready to draw yet", this);
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -838,7 +838,7 @@ bool wxGLCanvasEGL::SwapBuffers()
|
||||
}
|
||||
#endif // GDK_WINDOWING_WAYLAND
|
||||
|
||||
wxLogTrace(TRACE_EGL, "Swapping buffers");
|
||||
wxLogTrace(TRACE_EGL, "Swapping buffers for window %p", this);
|
||||
|
||||
return eglSwapBuffers(m_display, m_surface);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user