mirror of
https://github.com/glfw/glfw.git
synced 2025-10-04 13:46:37 +00:00
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:
parent
f2ba78e04b
commit
6019072eef
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user