summaryrefslogtreecommitdiffstats
path: root/video/out/gl_video.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-02 20:11:20 +0100
committerwm4 <wm4@nowhere>2014-12-02 20:36:55 +0100
commitef1c7563c530bebf01493d494b960da4a06fa242 (patch)
tree47fbe4cc06912205d679ddbd6e483ff7b7769aae /video/out/gl_video.h
parent33a6b8df46f514a450d34dd74e20f4124426fe13 (diff)
downloadmpv-ef1c7563c530bebf01493d494b960da4a06fa242.tar.bz2
mpv-ef1c7563c530bebf01493d494b960da4a06fa242.tar.xz
vo_opengl: minor changes
Always set the viewport on entry. The way the viewport is tracked is a bit complicated in my opinion, and in fact it doesn't even reduce the number of GL calls. Setting it on entry is actually redundant if video covers the screen fully, because the handle_pass() unconditionally sets it anyway, but avoiding it would complicate the cases gl->Clear() is actually needed. Add a fbo argument to gl_video_render_frame(). This allows you to render into a FBO rather than the default framebuffer. It will be useful for providing an API to render on an external GL context. (If that will actually be added.)
Diffstat (limited to 'video/out/gl_video.h')
-rw-r--r--video/out/gl_video.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/gl_video.h b/video/out/gl_video.h
index a28109a5a2..bba24e364a 100644
--- a/video/out/gl_video.h
+++ b/video/out/gl_video.h
@@ -65,7 +65,7 @@ void gl_video_config(struct gl_video *p, struct mp_image_params *params);
void gl_video_set_output_depth(struct gl_video *p, int r, int g, int b);
void gl_video_set_lut3d(struct gl_video *p, struct lut3d *lut3d);
void gl_video_upload_image(struct gl_video *p, struct mp_image *img);
-void gl_video_render_frame(struct gl_video *p);
+void gl_video_render_frame(struct gl_video *p, int fbo);
struct mp_image *gl_video_download_image(struct gl_video *p);
void gl_video_resize(struct gl_video *p, struct mp_rect *window,
struct mp_rect *src, struct mp_rect *dst,