opengl 3.2
This commit is contained in:
1 parent
b1f0b7f637
commit
331a95459d
2 files changed
+10
-10
No files matched your search
@@ -26,7 +26,7 @@ final class RaylibGLNSView: NSOpenGLView {
|
||||
|
||||
override init(frame frameRect: NSRect) {
|
||||
let attributes: [NSOpenGLPixelFormatAttribute] = [
|
||||
UInt32(NSOpenGLPFAOpenGLProfile), UInt32(NSOpenGLProfileVersion4_1Core),
|
||||
UInt32(NSOpenGLPFAOpenGLProfile), UInt32(NSOpenGLProfileVersion3_2Core),
|
||||
UInt32(NSOpenGLPFAColorSize), 24,
|
||||
UInt32(NSOpenGLPFAAlphaSize), 8,
|
||||
UInt32(NSOpenGLPFADepthSize), 24,
|
||||
@@ -36,7 +36,7 @@ final class RaylibGLNSView: NSOpenGLView {
|
||||
]
|
||||
|
||||
guard let format = NSOpenGLPixelFormat(attributes: attributes) else {
|
||||
fatalError("Unable to create an OpenGL 4.1 core pixel format")
|
||||
fatalError("Unable to create an OpenGL 3.2 core pixel format")
|
||||
}
|
||||
|
||||
super.init(frame: frameRect, pixelFormat: format)!
|
||||
|
||||
Reference in new issue
Block a user