diff options
author | wm4 <wm4@nowhere> | 2015-09-01 15:20:33 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-09-01 15:40:04 +0200 |
commit | 9be10f3bf1897f871585b683eaee9d68e0fbf285 (patch) | |
tree | 0348b7f37bb8571ba8e99438543d4be3e4912bbb /video/out/gl_hwdec_vda.c | |
parent | d60270ed3dd41f7afb4cda6523c93a4c6120c898 (diff) | |
download | mpv-9be10f3bf1897f871585b683eaee9d68e0fbf285.tar.bz2 mpv-9be10f3bf1897f871585b683eaee9d68e0fbf285.tar.xz |
vo_opengl, vda: return to old state
Undo 292266f2. Reapply 3e12e79b.
An additional copy is not really justified, as it could reduce
performance. On the other hand, we can force API users to create
a GL 3.x context.
Diffstat (limited to 'video/out/gl_hwdec_vda.c')
-rw-r--r-- | video/out/gl_hwdec_vda.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/video/out/gl_hwdec_vda.c b/video/out/gl_hwdec_vda.c index 4ec46671a4..3fbcda0e79 100644 --- a/video/out/gl_hwdec_vda.c +++ b/video/out/gl_hwdec_vda.c @@ -122,6 +122,11 @@ static struct mp_image *download_image(struct mp_hwdec_ctx *ctx, static bool check_hwdec(struct gl_hwdec *hw) { + if (hw->gl->version < 300) { + MP_ERR(hw, "need >= OpenGL 3.0 for core rectangle texture support\n"); + return false; + } + if (!CGLGetCurrentContext()) { MP_ERR(hw, "need cocoa opengl backend to be active"); return false; |