提交 f9eeb049 编写于 作者: P Palana

libobs: (Re-)Move (duplicate) graphics mutex init

This probably fixes the crash from "libobs: Check effect mutex exists
before destroying it" (c2c47b11)
上级 f981b58b
......@@ -115,9 +115,6 @@ static bool graphics_init(struct graphics_subsystem *graphics)
graphics->exports.device_enter_context(graphics->device);
pthread_mutex_init_value(&graphics->mutex);
pthread_mutex_init_value(&graphics->effect_mutex);
if (!graphics_init_immediate_vb(graphics))
return false;
if (!graphics_init_sprite_vb(graphics))
......@@ -150,6 +147,7 @@ int gs_create(graphics_t **pgraphics, const char *module,
graphics_t *graphics = bzalloc(sizeof(struct graphics_subsystem));
pthread_mutex_init_value(&graphics->mutex);
pthread_mutex_init_value(&graphics->effect_mutex);
if (!new_data.num_backbuffers)
new_data.num_backbuffers = 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册