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/Cocoa | |
| parent | 63c0ef5681e869ceea908fe73f6c66bcd3bf442a (diff) | |
Add Fl_Gl_Window 32 bit depth buffer option.
Diffstat (limited to 'src/drivers/Cocoa')
| -rw-r--r-- | src/drivers/Cocoa/Fl_Cocoa_Gl_Window_Driver.mm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/drivers/Cocoa/Fl_Cocoa_Gl_Window_Driver.mm b/src/drivers/Cocoa/Fl_Cocoa_Gl_Window_Driver.mm index fd846f1c8..d286d46f3 100644 --- a/src/drivers/Cocoa/Fl_Cocoa_Gl_Window_Driver.mm +++ b/src/drivers/Cocoa/Fl_Cocoa_Gl_Window_Driver.mm @@ -94,7 +94,11 @@ static NSOpenGLPixelFormat* mode_to_NSOpenGLPixelFormat(int m, const int *alistp //list[n++] = AGL_DOUBLEBUFFER; attribs[n++] = NSOpenGLPFADoubleBuffer; } - if (m & FL_DEPTH) { + if (m & FL_DEPTH32) { + //list[n++] = AGL_DEPTH_SIZE; list[n++] = 32; + attribs[n++] = NSOpenGLPFADepthSize; + attribs[n++] = (NSOpenGLPixelFormatAttribute)32; + } else if (m & FL_DEPTH) { //list[n++] = AGL_DEPTH_SIZE; list[n++] = 24; attribs[n++] = NSOpenGLPFADepthSize; attribs[n++] = (NSOpenGLPixelFormatAttribute)24; |
