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; ```