have children swap buffers on the playground

This commit is contained in:
IoIxD 2025-12-07 19:12:59 -07:00
commit b441f236b4

View file

@ -828,7 +828,6 @@ static void MwLLLineImpl(MwLL handle, MwPoint* points, MwLLColor color) {
}
static void MwLLBeginDrawImpl(MwLL handle) {
if(handle->wayland.parent == NULL)
if(!eglMakeCurrent(handle->wayland.egl_display, handle->wayland.egl_surface, handle->wayland.egl_surface, handle->wayland.egl_context)) {
printf("ERROR: eglMakeCurrent, %0X\n", eglGetError());
return;
@ -869,7 +868,6 @@ static void MwLLEndDrawImpl(MwLL handle) {
wl_surface_damage(handle->wayland.surface, 0, 0, handle->wayland.ww, handle->wayland.wh);
if(handle->wayland.parent == NULL)
if(!eglSwapBuffers(handle->wayland.egl_display, handle->wayland.egl_surface)) {
printf("error swapping buffers! %0X\n", eglGetError());
} else {