From 5c0f515f72ed8cef85111ca17e8f212af14eea9d Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Fri, 20 Jan 2006 20:31:24 +0000 Subject: Fixed build breakage on 10.4 after last checkin git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@554 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/native/jogl/MacOSXWindowSystemInterface.m | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/native/jogl/MacOSXWindowSystemInterface.m') diff --git a/src/native/jogl/MacOSXWindowSystemInterface.m b/src/native/jogl/MacOSXWindowSystemInterface.m index ed15d6a7e..d644fb80a 100644 --- a/src/native/jogl/MacOSXWindowSystemInterface.m +++ b/src/native/jogl/MacOSXWindowSystemInterface.m @@ -9,12 +9,8 @@ #endif #ifndef MAC_OS_X_VERSION_10_4 -*/ - #define NSOpenGLPFAColorFloat kCGLPFAColorFloat #define kCGLNoError 0 - -/* #endif */ @@ -53,7 +49,7 @@ void getRendererInfo() CGLRendererInfoObj info; long numRenderers = 0; CGLError err = CGLQueryRendererInfo(CGDisplayIDToOpenGLDisplayMask(kCGDirectMainDisplay), &info, &numRenderers); - if (err == kCGLNoError) + if (err == 0 /* kCGLNoError */) { CGLDescribeRenderer(info, 0, kCGLRPRendererCount, &numRenderers); long j; @@ -198,7 +194,7 @@ void* createContext(void* shareContext, void* view, NSOpenGLPixelFormatAttribute attribs[256]; int idx = 0; if (pbuffer) attribs[idx++] = NSOpenGLPFAPixelBuffer; - if (floatingPoint) attribs[idx++] = NSOpenGLPFAColorFloat; + if (floatingPoint) attribs[idx++] = kCGLPFAColorFloat /* NSOpenGLPFAColorFloat */; if (doubleBuffer) attribs[idx++] = NSOpenGLPFADoubleBuffer; if (stereo) attribs[idx++] = NSOpenGLPFAStereo; attribs[idx++] = NSOpenGLPFAColorSize; attribs[idx++] = colorSize; -- cgit v1.2.3