diff options
author | Marius Kintel <marius@kintel.net> | 2011-11-08 04:12:28 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-11-08 04:12:28 (GMT) |
commit | 5a97bff9094f142c5d895ba5894399a4982b7319 (patch) | |
tree | e67d889d032fa42f5edc542bca83b5ed091465f8 /tests/OffscreenContext.mm | |
parent | bddf02588c696181c5882e7c79c56793628e6b34 (diff) |
Bugfix: Attach a stencil buffer to the FBO, fixes some OpenCSG rendering bugs
Diffstat (limited to 'tests/OffscreenContext.mm')
-rw-r--r-- | tests/OffscreenContext.mm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/OffscreenContext.mm b/tests/OffscreenContext.mm index 2bbaffa..140516f 100644 --- a/tests/OffscreenContext.mm +++ b/tests/OffscreenContext.mm @@ -33,6 +33,7 @@ OffscreenContext *create_offscreen_context(int w, int h) NSOpenGLPFANoRecovery, NSOpenGLPFAAccelerated, NSOpenGLPFADepthSize, 24, + NSOpenGLPFAStencilSize, 8, (NSOpenGLPixelFormatAttribute) 0 }; NSOpenGLPixelFormat *pixFormat = [[[NSOpenGLPixelFormat alloc] initWithAttributes:attributes] autorelease]; |