mirror of https://github.com/mpv-player/mpv
gl_common: add dummy initialization
The uninitialized values are passed through some functions, but will be eventually unused. Initialize them anyway to avoid potential undefined behavior and for clarity.
This commit is contained in:
parent
fc656c6bcc
commit
e57802a39f
|
@ -1567,8 +1567,8 @@ static void glSetupYUVFragprog(GL *gl, gl_conversion_params_t *params)
|
||||||
char *yuv_prog = NULL;
|
char *yuv_prog = NULL;
|
||||||
char **prog = &yuv_prog;
|
char **prog = &yuv_prog;
|
||||||
int cur_texu = 3;
|
int cur_texu = 3;
|
||||||
char lum_scale_texs[1];
|
char lum_scale_texs[1] = {0};
|
||||||
char chrom_scale_texs[1];
|
char chrom_scale_texs[1] = {0};
|
||||||
char conv_texs[1];
|
char conv_texs[1];
|
||||||
char filt_texs[1] = {0};
|
char filt_texs[1] = {0};
|
||||||
GLint i;
|
GLint i;
|
||||||
|
|
Loading…
Reference in New Issue