Wayland: Fix for bug in NVIDIA drivers that prevents transparency working
Fixes #5479
This commit is contained in:
parent
67d70f8b8f
commit
5ba887ff68
@ -44,6 +44,8 @@ Detailed list of changes
|
||||
|
||||
- Sessions: Allow controlling which OS Window is active via the ``focus_os_window`` directive
|
||||
|
||||
- Wayland: Fix for bug in NVIDIA drivers that prevents transparency working (:iss:`5479`)
|
||||
|
||||
0.26.2 [2022-09-05]
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
7
glfw/egl_context.c
vendored
7
glfw/egl_context.c
vendored
@ -600,8 +600,11 @@ bool _glfwCreateContextEGL(_GLFWwindow* window,
|
||||
if (_glfw.egl.KHR_gl_colorspace)
|
||||
setAttrib(EGL_GL_COLORSPACE_KHR, EGL_GL_COLORSPACE_SRGB_KHR);
|
||||
}
|
||||
if (_glfw.egl.EXT_present_opaque)
|
||||
setAttrib(EGL_PRESENT_OPAQUE_EXT, !fbconfig->transparent);
|
||||
// Disabled because it prevents transparency from working on NVIDIA drivers under Wayland
|
||||
// https://github.com/kovidgoyal/kitty/issues/5479
|
||||
// We anyway dont use the alpha bits for anything.
|
||||
/* if (_glfw.egl.EXT_present_opaque) */
|
||||
/* setAttrib(EGL_PRESENT_OPAQUE_EXT, !fbconfig->transparent); */
|
||||
|
||||
setAttrib(EGL_NONE, EGL_NONE);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user