summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-07-02 16:43:27 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-07-02 16:43:27 +0200
commitc7493496c91f17390ea6f958b0ec33947f0cb817 (patch)
tree693d25a34e6c39a4849cb3629138234c4d3cfe78 /src
parentef72df0dc7c3c48373c52085a855ac6ce6df4868 (diff)
Wayland platform: add support of FL_ALPHA for GL windows.
Diffstat (limited to 'src')
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx
index fad32cb15..b37e0c483 100644
--- a/src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx
+++ b/src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx
@@ -126,12 +126,14 @@ Fl_Gl_Choice *Fl_Wayland_Gl_Window_Driver::find(int m, const int *alistp)
EGL_DEPTH_SIZE, 0, // set at 11
EGL_SAMPLE_BUFFERS, 0, // set at 13
EGL_STENCIL_SIZE, 0, // set at 15
+ EGL_ALPHA_SIZE, 0, // set at 17
EGL_NONE
};
if (m & FL_DEPTH) config_attribs[11] = 1;
if (m & FL_MULTISAMPLE) config_attribs[13] = 1;
if (m & FL_STENCIL) config_attribs[15] = 1;
+ if (m & FL_ALPHA) config_attribs[17] = (m & FL_RGB8) ? 8 : 1;
static EGLConfig *configs = (void**)calloc(configs_count, sizeof(EGLConfig));
eglChooseConfig(egl_display, config_attribs, configs, configs_count, &n);