mirror of
https://github.com/glfw/glfw.git
synced 2025-10-05 06:06:36 +00:00
Merge 9d3eafa1a2
into 5aeb37d1b8
This commit is contained in:
commit
ba45cb83d3
@ -258,7 +258,7 @@ void glfwDefaultWindowHints(void)
|
|||||||
_glfw.hints.framebuffer.redBits = 8;
|
_glfw.hints.framebuffer.redBits = 8;
|
||||||
_glfw.hints.framebuffer.greenBits = 8;
|
_glfw.hints.framebuffer.greenBits = 8;
|
||||||
_glfw.hints.framebuffer.blueBits = 8;
|
_glfw.hints.framebuffer.blueBits = 8;
|
||||||
_glfw.hints.framebuffer.alphaBits = 8;
|
_glfw.hints.framebuffer.alphaBits = 0;
|
||||||
_glfw.hints.framebuffer.depthBits = 24;
|
_glfw.hints.framebuffer.depthBits = 24;
|
||||||
_glfw.hints.framebuffer.stencilBits = 8;
|
_glfw.hints.framebuffer.stencilBits = 8;
|
||||||
_glfw.hints.framebuffer.doublebuffer = GLFW_TRUE;
|
_glfw.hints.framebuffer.doublebuffer = GLFW_TRUE;
|
||||||
|
@ -178,6 +178,12 @@ static const struct wl_surface_listener surfaceListener = {
|
|||||||
static void setOpaqueRegion(_GLFWwindow* window)
|
static void setOpaqueRegion(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
struct wl_region* region;
|
struct wl_region* region;
|
||||||
|
int alphaBits;
|
||||||
|
|
||||||
|
eglGetConfigAttrib(_glfw.egl.display, window->context.egl.config,
|
||||||
|
EGL_ALPHA_SIZE, &alphaBits);
|
||||||
|
if (alphaBits > 0)
|
||||||
|
return;
|
||||||
|
|
||||||
region = wl_compositor_create_region(_glfw.wl.compositor);
|
region = wl_compositor_create_region(_glfw.wl.compositor);
|
||||||
if (!region)
|
if (!region)
|
||||||
|
Loading…
Reference in New Issue
Block a user