mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 08:48:00 +02:00
win32: Initialize mutexes for static builds for win32
For static win32 builds the mutexes are not initialized (for dynamic builds it's done when the DLL is loaded). Therefore, add initialization to the create surface calls. Cc: Uli Schlachter <psychon@znc.in> Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
This commit is contained in:
parent
339fe9a768
commit
5f90f0a706
1 changed files with 2 additions and 0 deletions
|
|
@ -131,6 +131,8 @@ _cairo_win32_device_get (void)
|
|||
{
|
||||
cairo_win32_device_t *device;
|
||||
|
||||
CAIRO_MUTEX_INITIALIZE ();
|
||||
|
||||
if (__cairo_win32_device)
|
||||
return cairo_device_reference (__cairo_win32_device);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue