[Mesa-dev] [Bug 54971] __glXInitialize can initialize same display multiple times

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue May 30 10:08:17 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=54971

--- Comment #2 from Emil Velikov <emil.l.velikov at gmail.com> ---
Mostly food for thought if anyone wants to pursue this:
 - Call XOpenDisplay once, as mentioned already.
 - Introduce an X API to compare two Display(s) - unless there's one already.
 - Refcount the Display - implies atomics/locking which is fine since MT users
should call XInitThreads, which populates the Lock/Unlock callbacks.
 - Worth checking how the Nvidia binary driver handles this?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170530/26fd0a43/attachment.html>


More information about the mesa-dev mailing list