Explorar o código

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.
jp9000 %!s(int64=6) %!d(string=hai) anos
pai
achega
09fc41cc06
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      libobs/graphics/graphics.c

+ 2 - 1
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)