Skip to content
Snippets Groups Projects
Commit 4583265c authored by Cinder's avatar Cinder
Browse files

GL Multisampling and explicitly cast ints to NSOpenGLPixelFormatAttribute

parent dba872bd
Branches
Tags
No related merge requests found
...@@ -177,12 +177,13 @@ attributedStringInfo getSegments(NSAttributedString *str) ...@@ -177,12 +177,13 @@ attributedStringInfo getSegments(NSAttributedString *str)
NSOpenGLPFADoubleBuffer, NSOpenGLPFADoubleBuffer,
NSOpenGLPFAClosestPolicy, NSOpenGLPFAClosestPolicy,
NSOpenGLPFAAccelerated, NSOpenGLPFAAccelerated,
NSOpenGLPFAMultisample,
NSOpenGLPFASampleBuffers, static_cast<NSOpenGLPixelFormatAttribute>((samples > 0 ? 1 : 0)), NSOpenGLPFASampleBuffers, static_cast<NSOpenGLPixelFormatAttribute>((samples > 0 ? 1 : 0)),
NSOpenGLPFASamples, static_cast<NSOpenGLPixelFormatAttribute>(samples), NSOpenGLPFASamples, static_cast<NSOpenGLPixelFormatAttribute>(samples),
NSOpenGLPFAStencilSize, 8, NSOpenGLPFAStencilSize, static_cast<NSOpenGLPixelFormatAttribute>(8),
NSOpenGLPFADepthSize, 24, NSOpenGLPFADepthSize, static_cast<NSOpenGLPixelFormatAttribute>(24),
NSOpenGLPFAAlphaSize, 8, NSOpenGLPFAAlphaSize, static_cast<NSOpenGLPixelFormatAttribute>(8),
NSOpenGLPFAColorSize, 24, NSOpenGLPFAColorSize, static_cast<NSOpenGLPixelFormatAttribute>(24),
0 0
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment