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:
Greg V 2020-09-28 04:47:16 +03:00
parent 30b77b0b32
commit 7c61a54c5b

View File

@ -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);