summaryrefslogtreecommitdiffstats
path: root/video/out/vo_opengl.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-05-23 21:25:43 +0200
committerwm4 <wm4@nowhere>2016-05-23 21:27:18 +0200
commitc4707cdee66ebb3023ed97e033df7c68d147c17d (patch)
treef555f44f6c2b699641d0af8f7ec6684e2b3efc2b /video/out/vo_opengl.c
parente76aa7e8dbb3da3a6f7ea8a20adb7ae70ef9a8e3 (diff)
downloadmpv-c4707cdee66ebb3023ed97e033df7c68d147c17d.tar.bz2
mpv-c4707cdee66ebb3023ed97e033df7c68d147c17d.tar.xz
vo_opengl: fix other minor namespace issues
See previous commit.
Diffstat (limited to 'video/out/vo_opengl.c')
-rw-r--r--video/out/vo_opengl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/vo_opengl.c b/video/out/vo_opengl.c
index 64d537bd5f..6f4e5948df 100644
--- a/video/out/vo_opengl.c
+++ b/video/out/vo_opengl.c
@@ -311,7 +311,7 @@ static int control(struct vo *vo, uint32_t request, void *data)
return VO_NOTIMPL;
}
case VOCTRL_SCREENSHOT_WIN: {
- struct mp_image *screen = glGetWindowScreenshot(p->gl);
+ struct mp_image *screen = gl_read_window_contents(p->gl);
// set image parameters according to the display, if possible
if (screen) {
screen->params.primaries = p->renderer_opts->target_prim;