wined3d: Fix uninitialised variable warnings.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zhiyi Zhang 2020-04-21 21:36:58 +08:00 committed by Alexandre Julliard
parent b6968ab59d
commit c2a20e7f59
2 changed files with 2 additions and 2 deletions

View File

@ -12781,7 +12781,7 @@ static GLuint glsl_blitter_generate_program(struct wined3d_glsl_blitter *blitter
enum complex_fixup complex_fixup = get_complex_fixup(args->fixup);
struct wined3d_string_buffer *buffer, *output;
GLuint program, vshader_id, fshader_id;
const char *tex_type, *swizzle, *ptr;
const char *tex_type = NULL, *swizzle = NULL, *ptr;
unsigned int i;
GLint loc;

View File

@ -2586,7 +2586,7 @@ static void check_fbo_compat(struct wined3d_caps_gl_ctx *ctx, struct wined3d_for
&& format->format != GL_LUMINANCE && format->format != GL_LUMINANCE_ALPHA
&& (format->f.red_size || format->f.alpha_size))
{
DWORD readback[16 * 16 * 16], color, r_range, a_range;
DWORD readback[16 * 16 * 16], color = 0, r_range, a_range;
BYTE r, a;
BOOL match = TRUE;
GLuint rb;