diff options
author | Kenneth Russel <[email protected]> | 2006-01-20 20:31:24 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2006-01-20 20:31:24 +0000 |
commit | 5c0f515f72ed8cef85111ca17e8f212af14eea9d (patch) | |
tree | fd04ed8c88afd225b4a640c1c8ba2032e577ee07 /src/native | |
parent | 680926a6d5780dce2d604902cf76dfcb7ef9d807 (diff) |
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
Diffstat (limited to 'src/native')
-rw-r--r-- | src/native/jogl/MacOSXWindowSystemInterface.m | 8 |
1 files changed, 2 insertions, 6 deletions
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; |