0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

vo_opengl: fix use of uninitialized memory

Pretty bad, although it should actually not cause any misbehavior. Comes
from the hardware decoding interop commit.
This commit is contained in:
wm4 2013-11-04 01:20:11 +01:00
parent 25affdcc88
commit 5b6eab01af

View File

@ -1204,7 +1204,7 @@ static void set_image_textures(struct gl_video *p, struct video_image *vimg,
GLuint imgtex[4])
{
GL *gl = p->gl;
GLuint dummy[4];
GLuint dummy[4] = {0};
if (!imgtex)
imgtex = dummy;