From 09fc41cc06cf0ab0d1a1ea53d673ed4caf8289e7 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Fri, 30 Aug 2019 00:36:06 -0700 Subject: [PATCH] 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. --- libobs/graphics/graphics.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libobs/graphics/graphics.c b/libobs/graphics/graphics.c index 4324b86b4..9e77cc393 100644 --- a/libobs/graphics/graphics.c +++ b/libobs/graphics/graphics.c @@ -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)