Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lictex_
glfw
0004-wayland-fix-broken-opengl-screenshots-on-m...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0004-wayland-fix-broken-opengl-screenshots-on-mutter.patch of Package glfw
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: ninja- <ninja-@users.noreply.github.com> Date: Tue, 30 Jun 2020 19:41:52 +0200 Subject: wayland: fix broken opengl screenshots on mutter --- src/egl_context.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/egl_context.c b/src/egl_context.c index 975c67be..b5cbeaff 100644 --- a/src/egl_context.c +++ b/src/egl_context.c @@ -175,6 +175,14 @@ static GLFWbool chooseEGLConfig(const _GLFWctxconfig* ctxconfig, u->samples = getEGLConfigAttrib(n, EGL_SAMPLES); u->doublebuffer = desired->doublebuffer; +#if defined(_GLFW_WAYLAND) + // Avoid using transparent buffer on Wayland if transparency is not requested. + // Otherwise mutter will fail to properly screenshot OpenGL content. + if (u->alphaBits > 0 && !desired->transparent) { + continue; + } +#endif // _GLFW_WAYLAND + u->handle = (uintptr_t) n; usableCount++; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor