wined3d: Make sure some variables are always initialized.
This commit is contained in:
parent
9aaccfe77f
commit
3643d59d5b
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue