diff options
author | wm4 <wm4@nowhere> | 2013-12-01 23:39:13 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-12-01 23:39:13 +0100 |
commit | dc582f2505d7583f414dcfa777371f986de381d3 (patch) | |
tree | 20fdff93deb3b96a10f0022db8c04244677a56a6 /video/out/vo_opengl.c | |
parent | f30c2c99d16527c045caee90c9f7b2a7a7c85c00 (diff) | |
download | mpv-dc582f2505d7583f414dcfa777371f986de381d3.tar.bz2 mpv-dc582f2505d7583f414dcfa777371f986de381d3.tar.xz |
vo_opengl: add support for rectangle textures
This allows vo_opengl to use GL_TEXTURE_RECTANGLE textures, either by
enabling it with the 'rectangle-textures' sub-option, or by having a
hwdec backend force it. By default it's off.
The _only_ reason we're adding this is because VDA can export rectangle
textures only.
Diffstat (limited to 'video/out/vo_opengl.c')
-rw-r--r-- | video/out/vo_opengl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/vo_opengl.c b/video/out/vo_opengl.c index e086e36e7d..774d87ed05 100644 --- a/video/out/vo_opengl.c +++ b/video/out/vo_opengl.c @@ -206,6 +206,7 @@ static void load_hwdec_driver(struct gl_priv *p, .log = mp_log_new(hwdec, p->vo->log, drv->api_name), .mpgl = p->glctx, .info = talloc_zero(hwdec, struct mp_hwdec_info), + .gl_texture_target = GL_TEXTURE_2D, }; mpgl_lock(p->glctx); if (hwdec->driver->create(hwdec) < 0) { |