summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-26 02:06:18 +0100
committerwm4 <wm4@nowhere>2015-01-26 02:06:18 +0100
commit9fc15e5e1c97984b428eaf4c60004fa7ddbcfde2 (patch)
tree18d28e9d79da9c43c0d8fc838b0730d5382ede7c
parentdc1793048f234dc2c35ba19f17a5567ec74136d8 (diff)
downloadmpv-9fc15e5e1c97984b428eaf4c60004fa7ddbcfde2.tar.bz2
mpv-9fc15e5e1c97984b428eaf4c60004fa7ddbcfde2.tar.xz
vo_opengl: update a comment
We don't use the hwdec-provided video texture for screenshots anymore.
-rw-r--r--video/out/gl_hwdec.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/video/out/gl_hwdec.h b/video/out/gl_hwdec.h
index ffe685fa97..d4e500e329 100644
--- a/video/out/gl_hwdec.h
+++ b/video/out/gl_hwdec.h
@@ -17,10 +17,11 @@ struct gl_hwdec {
bool reject_emulated;
// hwdec backends must set this to an IMGFMT_ that has an equivalent
// internal representation in gl_video.c as the hardware texture.
- // It's used to build the rendering chain, and also as screenshot format.
+ // It's used to build the rendering chain. For example, setting it to
+ // IMGFMT_RGB0 indicates that the video texture is RGB.
int converted_imgfmt;
// Normally this is GL_TEXTURE_2D, but the hwdec driver can set it to
- // GL_TEXTURE_RECTANGLE.
+ // GL_TEXTURE_RECTANGLE. This is needed because VDA is shit.
GLenum gl_texture_target;
};