summaryrefslogtreecommitdiffstats
path: root/video/out/mac/gl_layer.swift
diff options
context:
space:
mode:
authorder richter <der.richter@gmx.de>2024-03-19 23:15:42 +0100
committerder richter <der.richter@gmx.de>2024-03-21 18:33:15 +0100
commit204e3f0df63d9e9ad93d8ece0b6dcfa4c5246fa7 (patch)
tree778a00a6393eca40db895bc20e4275bade21beb4 /video/out/mac/gl_layer.swift
parentf72dfd48d0d663f7bdcfba8cd3df691c76797907 (diff)
downloadmpv-204e3f0df63d9e9ad93d8ece0b6dcfa4c5246fa7.tar.bz2
mpv-204e3f0df63d9e9ad93d8ece0b6dcfa4c5246fa7.tar.xz
mac/option: rename option structs to properly represent their content
also optimise option cache setup.
Diffstat (limited to 'video/out/mac/gl_layer.swift')
-rw-r--r--video/out/mac/gl_layer.swift8
1 files changed, 4 insertions, 4 deletions
diff --git a/video/out/mac/gl_layer.swift b/video/out/mac/gl_layer.swift
index 06eb797edd..df5dc5f7a8 100644
--- a/video/out/mac/gl_layer.swift
+++ b/video/out/mac/gl_layer.swift
@@ -249,7 +249,7 @@ class GLLayer: CAOpenGLLayer {
var pix: CGLPixelFormatObj?
var depth: GLint = 8
var err: CGLError = CGLError(rawValue: 0)
- let swRender = ccb.option.macOpts.cocoa_cb_sw_renderer
+ let swRender = ccb.option.mac.cocoa_cb_sw_renderer
if swRender != 1 {
(pix, depth, err) = GLLayer.findPixelFormat(ccb)
@@ -277,12 +277,12 @@ class GLLayer: CAOpenGLLayer {
glBase.insert(CGLPixelFormatAttribute(ver.rawValue), at: 1)
var glFormat = [glBase]
- if ccb.option.macOpts.cocoa_cb_10bit_context {
+ if ccb.option.mac.cocoa_cb_10bit_context {
glFormat += [glFormat10Bit]
}
glFormat += glFormatOptional
- if !ccb.option.macOpts.macos_force_dedicated_gpu {
+ if !ccb.option.mac.macos_force_dedicated_gpu {
glFormat += [glFormatAutoGPU]
}
@@ -308,7 +308,7 @@ class GLLayer: CAOpenGLLayer {
ccb.log.sendWarning("Couldn't create a " +
"\(software ? "software" : "hardware accelerated") " +
"CGL pixel format: \(errS) (\(err.rawValue))")
- if software == false && ccb.option.macOpts.cocoa_cb_sw_renderer == -1 {
+ if software == false && ccb.option.mac.cocoa_cb_sw_renderer == -1 {
ccb.log.sendWarning("Falling back to software renderer")
}