summaryrefslogtreecommitdiffstats
path: root/video/out/gl_hwdec_vda.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-21 20:27:22 +0200
committerwm4 <wm4@nowhere>2015-05-21 20:27:22 +0200
commit292266f26892080d905e374e03c6a8d57942ca0e (patch)
tree04248dfbfe8f57f31ebe6aa35d6fabfb0e19159e /video/out/gl_hwdec_vda.c
parentaf667643a0a7939c2cdb0d5e1451f45e376a0449 (diff)
downloadmpv-292266f26892080d905e374e03c6a8d57942ca0e.tar.bz2
mpv-292266f26892080d905e374e03c6a8d57942ca0e.tar.xz
vo_opengl: vda: make it work anywhere
A rather dumb hack to copy the problematic rectangle textures (mandated by VDA) into 2D ones. (This isn't done yet for OpenGL 3.0+. We need to make sure the performance isn't reduced too much by it.)
Diffstat (limited to 'video/out/gl_hwdec_vda.c')
-rw-r--r--video/out/gl_hwdec_vda.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/video/out/gl_hwdec_vda.c b/video/out/gl_hwdec_vda.c
index 079b7029b3..0b7cda2c3e 100644
--- a/video/out/gl_hwdec_vda.c
+++ b/video/out/gl_hwdec_vda.c
@@ -121,11 +121,6 @@ static bool check_hwdec(struct gl_hwdec *hw)
return false;
}
- 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;