Skip to content

Commit 414faff

Browse files
committed
Show the window in wxGLCanvasEGL tracing messages
This is useful when there is more than one window using EGL. (cherry picked from commit 547fb15)
1 parent c4612cd commit 414faff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/unix/glegl.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ bool wxGLCanvasEGL::SwapBuffers()
812812
// Trying to draw on a hidden window is useless and can actually be
813813
// harmful if the compositor blocks in eglSwapBuffers() in this
814814
// case, so avoid it.
815-
wxLogTrace(TRACE_EGL, "Not drawing hidden window");
815+
wxLogTrace(TRACE_EGL, "Window %p is hidden, not drawing", this);
816816
return false;
817817
}
818818
}
@@ -825,7 +825,7 @@ bool wxGLCanvasEGL::SwapBuffers()
825825
// worst if we're called before the window is realized.
826826
if ( !m_readyToDraw )
827827
{
828-
wxLogTrace(TRACE_EGL, "Not ready to draw yet");
828+
wxLogTrace(TRACE_EGL, "Window %p is not not ready to draw yet", this);
829829
return false;
830830
}
831831

@@ -838,7 +838,7 @@ bool wxGLCanvasEGL::SwapBuffers()
838838
}
839839
#endif // GDK_WINDOWING_WAYLAND
840840

841-
wxLogTrace(TRACE_EGL, "Swapping buffers");
841+
wxLogTrace(TRACE_EGL, "Swapping buffers for window %p", this);
842842

843843
return eglSwapBuffers(m_display, m_surface);
844844
}

0 commit comments

Comments
 (0)