diff options
| author | Manolo Gouy <Manolo> | 2015-10-27 08:40:56 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2015-10-27 08:40:56 +0000 |
| commit | 7e025aac22338ae573174d67e0c03e085c16630f (patch) | |
| tree | ceed51c15e935fc4a404bd4bb217f01aa55cdc79 /src | |
| parent | 43e4f8a6615892a5169f4e713a0d7a2a2e2d86e1 (diff) | |
Added support for OpenGL V3 and higher.
On the X11/MSWindows platforms, this requires external installation of the GLEW library.
This fixes STR#3198 and STR#3257.
Added two new examples programs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10876 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_cocoa.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 487e100aa..f1584a767 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -2718,11 +2718,12 @@ NSOpenGLPixelFormat* Fl_X::mode_to_NSOpenGLPixelFormat(int m, const int *alistp) #define NSOpenGLPFAOpenGLProfile (NSOpenGLPixelFormatAttribute)99 #define kCGLPFAOpenGLProfile NSOpenGLPFAOpenGLProfile #define NSOpenGLProfileVersionLegacy (NSOpenGLPixelFormatAttribute)0x1000 +#define NSOpenGLProfileVersion3_2Core (NSOpenGLPixelFormatAttribute)0x3200 #define kCGLOGLPVersion_Legacy NSOpenGLProfileVersionLegacy #endif if (fl_mac_os_version >= 100700) { attribs[n++] = NSOpenGLPFAOpenGLProfile; - attribs[n++] = NSOpenGLProfileVersionLegacy; // for now, no public FLTK API for OpenGL v3 profiles + attribs[n++] = (m & FL_OPENGL3) ? NSOpenGLProfileVersion3_2Core : NSOpenGLProfileVersionLegacy; } } else { while (alistp[n] && n < 30) { |
