obs-studio/libobs-opengl
Kurt Kartaltepe 5daf3b1ad1 libobs-opengl: Ensure proper draw buffer
This commit ensures that we set the appropriate draw buffer when making
a context current. Mesa drivers enforce opengl ES semantics where the
targets passed to eglMakeCurrent are bound, but nvidia instead ignores
these parameters after the 1st eglMakeCurrent. In obs we make current
with EGL_NO_SURFACE so our draw targets end up as EGL_NONE on nvidia
and previews fail to render.

This also allows us to fail back ignoring NATIVE_RENDERABLE
requirements. Nvidia driver does not report support for this attribute
on any context and after resolving the draw target issues previews
render correctly on nvidia and intel drivers.
2021-12-13 11:37:28 -03:00
..
.gitignore first commit 2013-09-30 19:37:13 -07:00
CMakeLists.txt libobs-opengl: Implement DMA-BUF importing on EGL renderers 2021-02-13 19:48:56 -03:00
gl-cocoa.m libobs: Add texture sharing support for macOS/OpenGL 2020-12-18 17:44:03 +01:00
gl-egl-common.c libobs, libobs-opengl: add drm format param 2021-03-29 17:00:31 -03:00
gl-egl-common.h libobs, libobs-opengl: add drm format param 2021-03-29 17:00:31 -03:00
gl-helpers.c libobs: Add support for volume textures 2019-12-15 14:38:26 -08:00
gl-helpers.h libobs-opengl: OpenGL thread-safety on Mac 2019-12-26 01:45:48 -08:00
gl-indexbuffer.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
gl-nix.c libobs, libobs-opengl: add drm format param 2021-03-29 17:00:31 -03:00
gl-nix.h libobs, libobs-opengl: add drm format param 2021-03-29 17:00:31 -03:00
gl-shader.c libobs: Add dormant SRGB format support 2021-01-21 07:42:13 -08:00
gl-shaderparser.c libobs-opengl: SRGB-safe GLSL path for raw loads 2021-01-19 12:24:36 -08:00
gl-shaderparser.h libobs-opengl: Add sincos to HLSL->GLSL transpile 2020-04-07 23:59:14 -07:00
gl-stagesurf.c libobs-opengl: Use PBO in device_stage_texture on macOS 2021-11-02 06:05:18 -07:00
gl-subsystem.c libobs, libobs-opengl: Consistent near/far undef 2021-10-10 19:12:45 -07:00
gl-subsystem.h libobs-opengl: Fix GS_R10G10B10A2 format 2021-07-11 08:26:29 -07:00
gl-texture2d.c libobs: Add support for volume textures 2019-12-15 14:38:26 -08:00
gl-texture3d.c libobs-opengl: Fix volume texture leak 2020-01-04 01:28:16 -08:00
gl-texturecube.c libobs: Add support for volume textures 2019-12-15 14:38:26 -08:00
gl-vertexbuffer.c libobs-opengl: Empty VAO 2019-06-24 23:13:04 -05:00
gl-wayland-egl.c libobs-opengl: Ensure proper draw buffer 2021-12-13 11:37:28 -03:00
gl-wayland-egl.h libobs-opengl: Introduce an EGL/Wayland renderer 2021-02-09 09:39:17 -03:00
gl-windows.c libobs-opengl: OpenGL thread-safety on Mac 2019-12-26 01:45:48 -08:00
gl-x11-egl.c clang-format: Commit file changes for clang-format 12 2021-10-13 20:00:04 +11:00
gl-x11-egl.h libobs-opengl: Introduce the X11/EGL winsys 2021-02-01 19:03:14 -03:00
gl-x11-glx.c libobs, libobs-opengl: add drm format param 2021-03-29 17:00:31 -03:00
gl-x11-glx.h libobs-opengl: Factor out GLX winsys 2021-02-01 19:03:14 -03:00
gl-zstencil.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00