From 7c45c3d1aa0359914ab5ad7c7fabdeaaba8443f5 Mon Sep 17 00:00:00 2001 From: Claudio Bo Date: Sun, 14 Jun 2026 21:14:36 -0700 Subject: [PATCH] fix(renderer): disable window framebuffer alpha --- platform/native_renderer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/native_renderer.c b/platform/native_renderer.c index 64ea8f918..8b3bb9c38 100644 --- a/platform/native_renderer.c +++ b/platform/native_renderer.c @@ -178,6 +178,9 @@ int NativeRenderer_InitialiseRender(char *windowName, int width, int height, int SDL_SetHint(SDL_HINT_WINDOW_ALLOW_TOPMOST, "0"); SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); + // Prevent compositors from interpreting framebuffer alpha as window transparency. + SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 0); + SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 1); if (!NativeRenderer_InitialiseGLContext(windowName, fullscreen))