supporting opengl hires mode
This commit is contained in:
parent
2517366ea3
commit
be6bd0160c
|
@ -419,6 +419,8 @@
|
||||||
[gl-view (tell (tell RacketGLView alloc)
|
[gl-view (tell (tell RacketGLView alloc)
|
||||||
initWithFrame: #:type _NSRect r
|
initWithFrame: #:type _NSRect r
|
||||||
pixelFormat: pf)])
|
pixelFormat: pf)])
|
||||||
|
(when (and gl-config (send gl-config get-hires-mode))
|
||||||
|
(tellv gl-view setWantsBestResolutionOpenGLSurface: #:type _uint 1))
|
||||||
(when new-context
|
(when new-context
|
||||||
(tellv gl-view setOpenGLContext: new-context)
|
(tellv gl-view setOpenGLContext: new-context)
|
||||||
;; We're supposed to sync via `setView:' but it fails,
|
;; We're supposed to sync via `setView:' but it fails,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user