Default to preferring a zero alpha bits window framebuffer

At the current state, GLFW doesn't support transparent windows, so lets
default to preferring a RGBX style buffer instead of a RGBA style
buffer. This fixes an issue in the Wayland backend where GLFW would
choose a RGBA buffer but still assume its opaque.
This commit is contained in:
Jonas Ådahl 2016-06-17 11:23:30 -04:00
parent f2ba78e04b
commit 6019072eef

View File

@ -252,7 +252,7 @@ void glfwDefaultWindowHints(void)
_glfw.hints.framebuffer.redBits = 8;
_glfw.hints.framebuffer.greenBits = 8;
_glfw.hints.framebuffer.blueBits = 8;
_glfw.hints.framebuffer.alphaBits = 8;
_glfw.hints.framebuffer.alphaBits = 0;
_glfw.hints.framebuffer.depthBits = 24;
_glfw.hints.framebuffer.stencilBits = 8;
_glfw.hints.framebuffer.doublebuffer = GLFW_TRUE;