Commit ed37174a authored by Alexandre Julliard's avatar Alexandre Julliard

winex11: Make sure that all glX functions are called under the X11 lock.

parent 2fba300c
......@@ -423,10 +423,7 @@ BOOL X11DRV_set_win_format( HWND hwnd, XID fbconfig_id )
if (!(data = X11DRV_get_win_data(hwnd)) &&
!(data = X11DRV_create_win_data(hwnd))) return FALSE;
wine_tsx11_lock();
vis = visual_from_fbconfig_id(fbconfig_id);
wine_tsx11_unlock();
if (!vis) return FALSE;
if (!(vis = visual_from_fbconfig_id(fbconfig_id))) return FALSE;
if (data->whole_window)
{
......@@ -559,15 +556,9 @@ static void sync_gl_drawable(struct x11drv_win_data *data)
}
#endif
wine_tsx11_lock();
vis = visual_from_fbconfig_id(data->fbconfig_id);
if(!vis)
{
wine_tsx11_unlock();
return;
}
if (!(vis = visual_from_fbconfig_id(data->fbconfig_id))) return;
wine_tsx11_lock();
pix = XCreatePixmap(gdi_display, root_window, w, h, vis->depth);
if(!pix)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment