Skip to content
Snippets Groups Projects
Commit a55320f0 authored by Charles Davis's avatar Charles Davis Committed by Alexandre Julliard
Browse files

winemac.drv: Use InitOnceExecuteOnce to initialize OpenGL.


Currently, there is a race condition where if two threads call into
OpenGL at the same time, one of them will initialize OpenGL, but the
other will barrel on ahead, thinking GL is already initialized, even
though the first thread hasn't finished initializing it yet. One of the
symptoms of this is that no pixel formats appear to be available,
because the first thread hasn't yet enumerated the available pixel
formats.

Signed-off-by: default avatarChip Davis <cdavis@codeweavers.com>
Signed-off-by: default avatarKen Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard's avatarAlexandre Julliard <julliard@winehq.org>
parent 14d97456
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment