eglDestroySurface takes the display first and the surface second rather than the other way around. Since both EGLDisplay and EGLSurface are just typedef'd to void* this doesn't raise a compiler warning. This currently doesn't crash at runtime because Mesa validates the display pointer against a list of known good values and fails gracefully, but it still causes a resource leak.
I came across this while looking into #26340. This is not the cause, but it still seems worth fixing.
https://github.com/wxWidgets/wxWidgets/pull/26341
(1 file)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Oops, thanks for finding and fixing this, merged locally and will push soon.
I'm a bit surprised that this is not related to #26340 because 23ccdb2 (Improve and document wxGLCanvas::CreateSurface(), 2023-03-21) which added this call speaks about this code path being taken after reparenting, but I didn't have time to look at the other bug in details yet.
Thanks again for the fix!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()