mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-05 21:46:44 -04:00
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.