[vlc-commits] vout-macosx: request HDR mode
Felix Paul Kühne
git at videolan.org
Sat Apr 16 14:15:14 CEST 2016
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sat Apr 16 15:03:34 2016 +0300| [5f8c5dd2cde31c59cb646013ba16f84206222693] | committer: Felix Paul Kühne
vout-macosx: request HDR mode
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5f8c5dd2cde31c59cb646013ba16f84206222693
---
modules/video_output/macosx.m | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/video_output/macosx.m b/modules/video_output/macosx.m
index b67172c..910636e 100644
--- a/modules/video_output/macosx.m
+++ b/modules/video_output/macosx.m
@@ -504,6 +504,11 @@ static void OpenglSwap (vlc_gl_t *gl)
if (OSX_LION)
[self setWantsBestResolutionOpenGLSurface:YES];
+ /* request our screen's HDR mode (introduced in OS X 10.11) */
+ if ([self respondsToSelector:@selector(setWantsExtendedDynamicRangeOpenGLSurface:)]) {
+ [self setWantsExtendedDynamicRangeOpenGLSurface:YES];
+ }
+
/* Swap buffers only during the vertical retrace of the monitor.
http://developer.apple.com/documentation/GraphicsImaging/
Conceptual/OpenGL/chap5/chapter_5_section_44.html */
More information about the vlc-commits
mailing list