diff --git a/libobs-opengl/gl-egl-common.c b/libobs-opengl/gl-egl-common.c index 46892372d..fb8a6b9df 100644 --- a/libobs-opengl/gl-egl-common.c +++ b/libobs-opengl/gl-egl-common.c @@ -178,10 +178,12 @@ create_dmabuf_egl_image(EGLDisplay egl_display, unsigned int width, } struct gs_texture *gl_egl_create_texture_from_eglimage( - EGLDisplay egl_display OBS_UNUSED, uint32_t width, uint32_t height, + EGLDisplay egl_display, uint32_t width, uint32_t height, enum gs_color_format color_format, EGLint target, EGLImage image) { + UNUSED_PARAMETER(egl_display); UNUSED_PARAMETER(target); + struct gs_texture *texture = NULL; texture = gs_texture_create(width, height, color_format, 1, NULL, GS_DYNAMIC); diff --git a/libobs-opengl/gl-nix.c b/libobs-opengl/gl-nix.c index dc5a2b52f..68a412cf8 100644 --- a/libobs-opengl/gl-nix.c +++ b/libobs-opengl/gl-nix.c @@ -120,9 +120,11 @@ extern void device_present(gs_device_t *device) gl_vtable->device_present(device); } -extern bool device_is_monitor_hdr(gs_device_t *device OBS_UNUSED, - void *monitor OBS_UNUSED) +extern bool device_is_monitor_hdr(gs_device_t *device, void *monitor) { + UNUSED_PARAMETER(device); + UNUSED_PARAMETER(monitor); + return false; } diff --git a/libobs-opengl/gl-wayland-egl.c b/libobs-opengl/gl-wayland-egl.c index 3a3e0389b..bd7e14dad 100644 --- a/libobs-opengl/gl-wayland-egl.c +++ b/libobs-opengl/gl-wayland-egl.c @@ -384,11 +384,16 @@ static bool gl_wayland_egl_device_query_dmabuf_modifiers_for_format( } static struct gs_texture *gl_wayland_egl_device_texture_create_from_pixmap( - gs_device_t *device OBS_UNUSED, uint32_t width OBS_UNUSED, - uint32_t height OBS_UNUSED, - enum gs_color_format color_format OBS_UNUSED, - uint32_t target OBS_UNUSED, void *pixmap OBS_UNUSED) + gs_device_t *device, uint32_t width, uint32_t height, + enum gs_color_format color_format, uint32_t target, void *pixmap) { + UNUSED_PARAMETER(device); + UNUSED_PARAMETER(width); + UNUSED_PARAMETER(height); + UNUSED_PARAMETER(color_format); + UNUSED_PARAMETER(target); + UNUSED_PARAMETER(pixmap); + return NULL; }