From 7c61a54c5bbb6dd178f34bd64bce7fc8095a2a8c Mon Sep 17 00:00:00 2001 From: Greg V Date: Mon, 28 Sep 2020 04:47:16 +0300 Subject: [PATCH] glfw: request non-transparent window buffer specifically Otherwise, e.g. re3 gets the same issue as https://stackoverflow.com/q/35245809 e.g. on Wayland where transparency is the default --- src/gl/gl3device.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gl/gl3device.cpp b/src/gl/gl3device.cpp index 856527a..67eae22 100644 --- a/src/gl/gl3device.cpp +++ b/src/gl/gl3device.cpp @@ -1410,6 +1410,7 @@ startGLFW(void) mode = &glGlobals.modes[glGlobals.currentMode]; glfwSetErrorCallback(glfwerr); + glfwWindowHint(GLFW_ALPHA_BITS, 0); // important e.g. on Wayland glfwWindowHint(GLFW_RED_BITS, mode->mode.redBits); glfwWindowHint(GLFW_GREEN_BITS, mode->mode.greenBits); glfwWindowHint(GLFW_BLUE_BITS, mode->mode.blueBits);