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/gl_common.h | |
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/gl_common.h')
-rw-r--r-- | video/out/gl_common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/gl_common.h b/video/out/gl_common.h index 8b5ac63d9a..c19ec7f73d 100644 --- a/video/out/gl_common.h +++ b/video/out/gl_common.h @@ -177,6 +177,9 @@ struct gl_hwdec { // internal representation in gl_video.c as the hardware texture. // It's used to build the rendering chain, and also as screenshot format. int converted_imgfmt; + // Normally this is GL_TEXTURE_2D, but the hwdec driver can set it to + // GL_TEXTURE_RECTANGLE. + GLenum gl_texture_target; }; struct gl_hwdec_driver { |