From 674bd3f821b8db815eda6e3be34e44be92c976a6 Mon Sep 17 00:00:00 2001 From: Kurt Kartaltepe Date: Sun, 28 Aug 2022 17:27:20 -0700 Subject: [PATCH] libobs-opengl: Use a simple 24bit framebuffer When using EGL the mesa+nvidia stack are unable to offload 32bit framebuffers despite having this capability on GLX. In practice the X11 server does not support alpha windows so we dont need the alpha component in our framebuffer. We previously had alpha specified in our framebuffer since we do alpha texturing but testing shows this isnt required for mesa/intel or nvidia drivers and we must pick a 24bit config for users to enable render offloading for mixed gpu systems. fixes #6984 --- libobs-opengl/gl-x11-egl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libobs-opengl/gl-x11-egl.c b/libobs-opengl/gl-x11-egl.c index 2ca20441a..df722f376 100644 --- a/libobs-opengl/gl-x11-egl.c +++ b/libobs-opengl/gl-x11-egl.c @@ -58,9 +58,9 @@ static const EGLint ctx_config_attribs[] = {EGL_STENCIL_SIZE, EGL_DEPTH_SIZE, 0, EGL_BUFFER_SIZE, - 32, + 24, EGL_ALPHA_SIZE, - 8, + 0, EGL_RENDERABLE_TYPE, EGL_OPENGL_BIT, EGL_SURFACE_TYPE,