summaryrefslogtreecommitdiff
path: root/src/drivers/X11
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2025-12-19 16:22:28 +0100
committerMatthias Melcher <github@matthiasm.com>2025-12-19 16:23:46 +0100
commitbad956cdd63de444a061ff754b99c633e11438c3 (patch)
tree39669ceacac1a0224b2bea34d7cfe92e1e1f24f8 /src/drivers/X11
parent63c0ef5681e869ceea908fe73f6c66bcd3bf442a (diff)
Add Fl_Gl_Window 32 bit depth buffer option.
Diffstat (limited to 'src/drivers/X11')
-rw-r--r--src/drivers/X11/Fl_X11_Gl_Window_Driver.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drivers/X11/Fl_X11_Gl_Window_Driver.cxx b/src/drivers/X11/Fl_X11_Gl_Window_Driver.cxx
index 1991be316..7282528ca 100644
--- a/src/drivers/X11/Fl_X11_Gl_Window_Driver.cxx
+++ b/src/drivers/X11/Fl_X11_Gl_Window_Driver.cxx
@@ -151,7 +151,9 @@ Fl_Gl_Choice *Fl_X11_Gl_Window_Driver::find(int m, const int *alistp)
if (m & FL_DOUBLE) {
list[n++] = GLX_DOUBLEBUFFER;
}
- if (m & FL_DEPTH) {
+ if (m & FL_DEPTH32) {
+ list[n++] = GLX_DEPTH_SIZE; list[n++] = 32;
+ } else if (m & FL_DEPTH) {
list[n++] = GLX_DEPTH_SIZE; list[n++] = 1;
}
if (m & FL_STENCIL) {