wined3d: Make sure some variables are always initialized.

This commit is contained in:
Henri Verbeet 2008-10-08 17:34:51 +02:00 committed by Alexandre Julliard
parent 9aaccfe77f
commit 3643d59d5b
2 changed files with 6 additions and 1 deletions

View File

@ -163,7 +163,11 @@ static GLuint register_for_arg(DWORD arg, WineD3D_GL_Info *gl_info, unsigned int
GLenum ret;
if(mod) *mod = GL_NONE;
if(arg == ARG_UNUSED) return -1; /* This is the marker for unused registers */
if(arg == ARG_UNUSED)
{
if (rep) *rep = GL_NONE;
return -1; /* This is the marker for unused registers */
}
switch(arg & WINED3DTA_SELECTMASK) {
case WINED3DTA_DIFFUSE:

View File

@ -1219,6 +1219,7 @@ static void shader_glsl_get_sample_function(DWORD sampler_type, BOOL projected,
break;
default:
sample_function->name = "";
sample_function->coord_mask = 0;
FIXME("Unrecognized sampler type: %#x;\n", sampler_type);
break;
}