diff options
| author | Matthias Melcher <github@matthiasm.com> | 2025-12-19 16:22:28 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2025-12-19 16:23:46 +0100 |
| commit | bad956cdd63de444a061ff754b99c633e11438c3 (patch) | |
| tree | 39669ceacac1a0224b2bea34d7cfe92e1e1f24f8 /src/drivers/WinAPI | |
| parent | 63c0ef5681e869ceea908fe73f6c66bcd3bf442a (diff) | |
Add Fl_Gl_Window 32 bit depth buffer option.
Diffstat (limited to 'src/drivers/WinAPI')
| -rw-r--r-- | src/drivers/WinAPI/Fl_WinAPI_Gl_Window_Driver.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/drivers/WinAPI/Fl_WinAPI_Gl_Window_Driver.cxx b/src/drivers/WinAPI/Fl_WinAPI_Gl_Window_Driver.cxx index d6f1a9632..375408496 100644 --- a/src/drivers/WinAPI/Fl_WinAPI_Gl_Window_Driver.cxx +++ b/src/drivers/WinAPI/Fl_WinAPI_Gl_Window_Driver.cxx @@ -79,7 +79,10 @@ Fl_Gl_Choice *Fl_WinAPI_Gl_Window_Driver::find(int m, const int *alistp) if ((m & FL_ACCUM) && !pfd.cAccumBits) continue; if ((!(m & FL_DOUBLE)) != (!(pfd.dwFlags & PFD_DOUBLEBUFFER))) continue; if ((!(m & FL_STEREO)) != (!(pfd.dwFlags & PFD_STEREO))) continue; + // Skipt his descriptor if we want a depth buffer, but this one has none if ((m & FL_DEPTH) && !pfd.cDepthBits) continue; + // Skipt his descriptor if we want a 32 bit depth buffer, but this one has less or none + if ((m & FL_DEPTH32) && pfd.cDepthBits < 32) continue; if ((m & FL_STENCIL) && !pfd.cStencilBits) continue; #if DEBUG_PFD |
