[PATCH 2/2] winex11: track glx windows per thread

Miklós Máté mtmkls at gmail.com
Mon Aug 1 17:28:37 CDT 2016


On 07/22/2016 03:11 AM, Alexandre Julliard wrote:
> Miklós Máté<mtmkls at gmail.com>  writes:
>
>> Hmm, you are right. Mesa does set an XCloseDisplay callback to clean
>> things up for the display connections it encounters. If I use
>> data->display instead of gdi_display for pglXCreateWindow in line 1358
>> of opengl.c, the tests pass, and no zombie glx windows remain. I don't
>> know if I should dare to take responsibility for this change, though,
>> as I know almost nothing about GDI.
> If it works then it's the right thing to do.
I did some further testing, and it doesn't work. Mesa glx maintains its 
state per-display, and creating a drawable with one display connection 
but makecurrent with an other one can lead to bad things. Unfortunately, 
wine-csmt likes to do those from separate threads, so the 
thread-specific display connections cannot be used instead of the global 
gdi_display.

MM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20160802/3b4b4852/attachment.html>


More information about the wine-devel mailing list