Adding legacy/core decision in gl-config/canvas
original commit: 31001f3484c3d379a2c85b5c5974283d3f909d61
This commit is contained in:
parent
4c71b5d039
commit
a74928552b
|
@ -192,12 +192,22 @@
|
|||
(define NSOpenGLPFASampleBuffers 55)
|
||||
(define NSOpenGLPFASamples 56)
|
||||
(define NSOpenGLPFAMultisample 59)
|
||||
(define NSOpenGLPFAOpenGLProfile 99)
|
||||
|
||||
(define NSOpenGLProfileVersionLegacy #x1000)
|
||||
(define NSOpenGLProfileVersion3_2Core #x3200)
|
||||
|
||||
(define (gl-config->pixel-format conf)
|
||||
(let ([conf (or conf (new gl-config%))])
|
||||
(tell (tell NSOpenGLPixelFormat alloc)
|
||||
initWithAttributes: #:type (_list i _int)
|
||||
(append
|
||||
(if (version-10.7-or-later?)
|
||||
(list NSOpenGLPFAOpenGLProfile
|
||||
(if (send conf get-legacy?)
|
||||
NSOpenGLProfileVersionLegacy
|
||||
NSOpenGLProfileVersion3_2Core))
|
||||
null)
|
||||
(if (send conf get-double-buffered) (list NSOpenGLPFADoubleBuffer) null)
|
||||
(if (send conf get-stereo) (list NSOpenGLPFAStereo) null)
|
||||
(list
|
||||
|
|
Loading…
Reference in New Issue
Block a user