Fix: Wayland use of alpha in glClearColor/glClear (#957)
This commit is contained in:
parent
e39c96f419
commit
ee37965fad
@ -299,6 +299,7 @@ void Fl_Wayland_Gl_Window_Driver::make_current_before() {
|
|||||||
Fl_Wayland_Gl_Choice *g = (Fl_Wayland_Gl_Choice*)this->g();
|
Fl_Wayland_Gl_Choice *g = (Fl_Wayland_Gl_Choice*)this->g();
|
||||||
egl_surface = eglCreateWindowSurface(egl_display, g->egl_conf, egl_window, NULL);
|
egl_surface = eglCreateWindowSurface(egl_display, g->egl_conf, egl_window, NULL);
|
||||||
wl_surface_set_buffer_scale(surface, scale);
|
wl_surface_set_buffer_scale(surface, scale);
|
||||||
|
if (mode() & FL_ALPHA) wl_surface_set_opaque_region(surface, NULL);
|
||||||
// Tested apps: shape, glpuzzle, cube, fractals, gl_overlay, fullscreen, unittests,
|
// Tested apps: shape, glpuzzle, cube, fractals, gl_overlay, fullscreen, unittests,
|
||||||
// OpenGL3-glut-test, OpenGL3test.
|
// OpenGL3-glut-test, OpenGL3test.
|
||||||
// Tested wayland compositors: mutter, kde-plasma, weston, sway on FreeBSD.
|
// Tested wayland compositors: mutter, kde-plasma, weston, sway on FreeBSD.
|
||||||
|
Loading…
Reference in New Issue
Block a user