Reduced model aliasing by increased z-buffer depth (cjlaurel)
parent
f030ca44d7
commit
d5237245ca
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue