diff options
author | wm4 <wm4@nowhere> | 2016-06-18 15:16:29 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-06-18 15:16:29 +0200 |
commit | 4a15bc6d737a34d232675ee6078813a84efe4d9c (patch) | |
tree | 79900e4fd903e3c9b1dc4b27918c2a724d4589d6 /video/out/vo_opengl.c | |
parent | 9215a9e59889c7a2f600c618501ace1360bf810d (diff) | |
download | mpv-4a15bc6d737a34d232675ee6078813a84efe4d9c.tar.bz2 mpv-4a15bc6d737a34d232675ee6078813a84efe4d9c.tar.xz |
vo_opengl: add ability to render to an arbitrary backing framebuffer
Most of the functionality already exists for the sake of vo_opengl_cb.
We only have to use it.
This will be used by dxinterop in the following commit.
Diffstat (limited to 'video/out/vo_opengl.c')
-rw-r--r-- | video/out/vo_opengl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/vo_opengl.c b/video/out/vo_opengl.c index 426236e436..08b9b11fe0 100644 --- a/video/out/vo_opengl.c +++ b/video/out/vo_opengl.c @@ -130,7 +130,7 @@ static void draw_frame(struct vo *vo, struct vo_frame *frame) p->vsync_fences[p->num_vsync_fences++] = fence; } - gl_video_render_frame(p->renderer, frame, 0); + gl_video_render_frame(p->renderer, frame, gl->main_fb); if (p->use_glFinish) gl->Finish(); |