wined3d: Fix an uninitialised variable warning.

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-05-05 20:46:43 +08:00 committed by Alexandre Julliard
parent 7ee8674ed2
commit 1976685a0f
1 changed files with 1 additions and 3 deletions

View File

@ -257,7 +257,7 @@ static void context_dump_fbo_attachment(const struct wined3d_gl_info *gl_info, G
}; };
GLint type, name, samples, width, height, old_texture, level, face, fmt, tex_target; GLint type, name, samples, width, height, old_texture, level, face, fmt, tex_target;
const char *tex_type_str; const char *tex_type_str = NULL;
unsigned int i; unsigned int i;
gl_info->fbo_ops.glGetFramebufferAttachmentParameteriv(target, attachment, gl_info->fbo_ops.glGetFramebufferAttachmentParameteriv(target, attachment,
@ -310,8 +310,6 @@ static void context_dump_fbo_attachment(const struct wined3d_gl_info *gl_info, G
} }
else else
{ {
tex_type_str = NULL;
for (i = 0; i < ARRAY_SIZE(texture_type); ++i) for (i = 0; i < ARRAY_SIZE(texture_type); ++i)
{ {
if (!gl_info->supported[texture_type[i].extension]) if (!gl_info->supported[texture_type[i].extension])