From 4583265cf296d8f64b7fc794c6c50f085c60b8fa Mon Sep 17 00:00:00 2001 From: Cinder <cinder.roxley@phoenixviewer.com> Date: Sat, 16 Aug 2014 06:48:44 -0600 Subject: [PATCH] GL Multisampling and explicitly cast ints to NSOpenGLPixelFormatAttribute --- indra/llwindow/llopenglview-objc.mm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/indra/llwindow/llopenglview-objc.mm b/indra/llwindow/llopenglview-objc.mm index 3f8589093b..d9629221c4 100644 --- a/indra/llwindow/llopenglview-objc.mm +++ b/indra/llwindow/llopenglview-objc.mm @@ -177,12 +177,13 @@ attributedStringInfo getSegments(NSAttributedString *str) NSOpenGLPFADoubleBuffer, NSOpenGLPFAClosestPolicy, NSOpenGLPFAAccelerated, + NSOpenGLPFAMultisample, NSOpenGLPFASampleBuffers, static_cast<NSOpenGLPixelFormatAttribute>((samples > 0 ? 1 : 0)), NSOpenGLPFASamples, static_cast<NSOpenGLPixelFormatAttribute>(samples), - NSOpenGLPFAStencilSize, 8, - NSOpenGLPFADepthSize, 24, - NSOpenGLPFAAlphaSize, 8, - NSOpenGLPFAColorSize, 24, + NSOpenGLPFAStencilSize, static_cast<NSOpenGLPixelFormatAttribute>(8), + NSOpenGLPFADepthSize, static_cast<NSOpenGLPixelFormatAttribute>(24), + NSOpenGLPFAAlphaSize, static_cast<NSOpenGLPixelFormatAttribute>(8), + NSOpenGLPFAColorSize, static_cast<NSOpenGLPixelFormatAttribute>(24), 0 }; -- GitLab