0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 04:42:18 +02:00

libobs: Use correct pointer

This is not supposed to pass the graphics context pointer -- it's
supposed to pass the device pointer held by the graphics context object.
This commit is contained in:
jp9000 2019-08-30 00:36:06 -07:00
parent 3ef5393d42
commit 09fc41cc06

View File

@ -293,7 +293,8 @@ void *gs_get_device_obj(void)
if (!gs_valid("gs_get_device_obj"))
return NULL;
return thread_graphics->exports.device_get_device_obj(thread_graphics);
return thread_graphics->exports.device_get_device_obj(
thread_graphics->device);
}
const char *gs_get_device_name(void)