diff --git a/src/gallium/frontends/wgl/stw_st.c b/src/gallium/frontends/wgl/stw_st.c index 5a6990139f6..6dabb2ae2d8 100644 --- a/src/gallium/frontends/wgl/stw_st.c +++ b/src/gallium/frontends/wgl/stw_st.c @@ -286,6 +286,9 @@ stw_st_flush(struct st_context_iface *stctx, args.stwfb = stwfb; args.flags = flags; + if (flags & ST_FLUSH_END_OF_FRAME && !stwfb->fb->winsys_framebuffer) + flags |= ST_FLUSH_WAIT; + if (flags & ST_FLUSH_WAIT) pfence = &fence; stctx->flush(stctx, flags, pfence, notify_before_flush_cb, &args);