From dc582f2505d7583f414dcfa777371f986de381d3 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 1 Dec 2013 23:39:13 +0100 Subject: 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. --- video/out/gl_common.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'video/out/gl_common.h') 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 { -- cgit v1.2.3