瀏覽代碼

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
Kurt Kartaltepe 3 年之前
父節點
當前提交
674bd3f821
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      libobs-opengl/gl-x11-egl.c

+ 2 - 2
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,