diff options
Diffstat (limited to 'video/out/vo_opengl_old.c')
-rw-r--r-- | video/out/vo_opengl_old.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/vo_opengl_old.c b/video/out/vo_opengl_old.c index d708d6fcb6..6605876226 100644 --- a/video/out/vo_opengl_old.c +++ b/video/out/vo_opengl_old.c @@ -791,8 +791,8 @@ static mp_image_t *get_screenshot(struct vo *vo) struct gl_priv *p = vo->priv; GL *gl = p->gl; - mp_image_t *image = alloc_mpi(p->texture_width, p->texture_height, - p->image_format); + mp_image_t *image = mp_image_alloc(p->image_format, p->texture_width, + p->texture_height); glDownloadTex(gl, p->target, p->gl_format, p->gl_type, image->planes[0], image->stride[0]); |