WineD3D: flush gl buffers are blt to drawable [attempt2]

Stefan Dösinger stefan at codeweavers.com
Thu Nov 8 16:51:39 CST 2007


Am Donnerstag, 8. November 2007 23:40:18 schrieb Roderick Colenbrander:
> Hi,
>
> This patch makes sure the gl buffer is flushed after blitting to the
> screen. This fixes bug 9826 where traces of old frames appeared due to
> this.
You really shouldn't do this unconditionally, it is only needed if two 
contexts are drawing to the same drawable. A suggestion would be to mark the 
first use of a 2nd thread in a device in FindContext, and call the glFlush 
only if happened.

The same glFlush is needed in all other places that draw something to the 
drawable: drawprim, clear and BltOverride come to my mind.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20071108/7651019e/attachment.pgp 


More information about the wine-patches mailing list