Skip to content

Commit 6e94e10

Browse files
author
Rye
committed
Explicitly disable multisample buffers for macos ogl context
1 parent 13b62d8 commit 6e94e10

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

indra/llwindow/llopenglview-objc.mm

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -231,16 +231,13 @@ - (id) initWithFrame:(NSRect)frame withSamples:(NSUInteger)samples andVsync:(BOO
231231
[self registerForDraggedTypes:[NSArray arrayWithObject:NSPasteboardTypeURL]];
232232
[self initWithFrame:frame];
233233

234-
// Initialize with a default "safe" pixel format that will work with versions dating back to OS X 10.6.
235-
// Any specialized pixel formats, i.e. a core profile pixel format, should be initialized through rebuildContextWithFormat.
236-
// 10.7 and 10.8 don't really care if we're defining a profile or not. If we don't explicitly request a core or legacy profile, it'll always assume a legacy profile (for compatibility reasons).
237234
NSOpenGLPixelFormatAttribute attrs[] = {
238235
NSOpenGLPFANoRecovery,
239236
NSOpenGLPFADoubleBuffer,
240237
NSOpenGLPFAClosestPolicy,
241238
NSOpenGLPFAAccelerated,
242-
NSOpenGLPFASampleBuffers, static_cast<NSOpenGLPixelFormatAttribute>(samples > 0 ? 1 : 0),
243-
NSOpenGLPFASamples, static_cast<NSOpenGLPixelFormatAttribute>(samples),
239+
NSOpenGLPFASampleBuffers, 0,
240+
NSOpenGLPFASamples, 0,
244241
NSOpenGLPFAStencilSize, 8,
245242
NSOpenGLPFADepthSize, 24,
246243
NSOpenGLPFAAlphaSize, 8,

0 commit comments

Comments
 (0)