Reduced model aliasing by increased z-buffer depth (cjlaurel)

ver1_5_1
Da Woon Jung 2005-02-05 06:49:44 +00:00
parent f030ca44d7
commit d5237245ca
1 changed files with 16 additions and 19 deletions

View File

@ -23,10 +23,10 @@
NSOpenGLPixelFormatAttribute attrs[] =
{
NSOpenGLPFADoubleBuffer,
NSOpenGLPFANoRecovery,
NSOpenGLPFAAccelerated,
// NSOpenGLPFANoRecovery,
// NSOpenGLPFAAccelerated,
NSOpenGLPFADepthSize,
(NSOpenGLPixelFormatAttribute)1,
(NSOpenGLPixelFormatAttribute)24,
nil
} ;
@ -222,16 +222,13 @@
- (void) drawRect: (NSRect) rect
{
NSOpenGLContext *oglContext;
[self lockFocus];
oglContext = [self openGLContext];
if (oglContext != nil)
{
[controller display];
glFinish();
[oglContext flushBuffer];
}
[self unlockFocus];
}
- (void) update