Restore compilability with Mac OS SDK 10.3 and above
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10798 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
63433f9be7
commit
1cf24ff074
3
FL/gl.h
3
FL/gl.h
@ -56,6 +56,9 @@
|
||||
|
||||
# ifdef __APPLE__
|
||||
# include <OpenGL/gl.h>
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_4
|
||||
# include <OpenGL/glext.h>
|
||||
#endif
|
||||
# else
|
||||
# include <GL/gl.h>
|
||||
# endif
|
||||
|
||||
@ -90,6 +90,9 @@ static Fl_RGB_Image* capture_gl_rectangle(Fl_Gl_Window *glw, int x, int y, int w
|
||||
}
|
||||
|
||||
#ifdef __APPLE__
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_4
|
||||
typedef CGImageAlphaInfo CGBitmapInfo;
|
||||
#endif
|
||||
static void imgProviderReleaseData (void *info, const void *data, size_t size)
|
||||
{
|
||||
delete (Fl_RGB_Image *)info;
|
||||
|
||||
@ -2715,7 +2715,9 @@ NSOpenGLPixelFormat* Fl_X::mode_to_NSOpenGLPixelFormat(int m, const int *alistp)
|
||||
attribs[n++] = NSOpenGLPFAStereo;
|
||||
}
|
||||
if (m & FL_MULTISAMPLE) {
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4
|
||||
attribs[n++] = NSOpenGLPFAMultisample,
|
||||
#endif
|
||||
attribs[n++] = NSOpenGLPFASampleBuffers; attribs[n++] = (NSOpenGLPixelFormatAttribute)1;
|
||||
attribs[n++] = NSOpenGLPFASamples; attribs[n++] = (NSOpenGLPixelFormatAttribute)4;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user