5 Mar
2024
5 Mar
'24
7:46 p.m.
Rémi Bernon (@rbernon) commented about dlls/winewayland.drv/opengl.c:
+ pthread_mutex_lock(&gl_object_mutex); + + if (ctx->new_draw) + { + old_draw = ctx->draw; + ctx->draw = ctx->new_draw; + InterlockedIncrement(&ctx->draw->ref); + ctx->new_draw = NULL; + refresh = TRUE; + } + if (ctx->new_read) + { + old_read = ctx->read; + ctx->read = ctx->new_read; + InterlockedIncrement(&ctx->read->ref); + ctx->new_read = NULL; And here as well,
```suggestion:-2+0 ctx->read = wayland_gl_drawable_acquire(ctx->new_read); ctx->new_read = NULL; ``` -- https://gitlab.winehq.org/wine/wine/-/merge_requests/5177#note_63588