mirror of
https://github.com/aap/librw.git
synced 2024-11-24 12:45:43 +00:00
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
This commit is contained in:
parent
30b77b0b32
commit
7c61a54c5b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user