wined3d: Explicitly check the shader type in shader_glsl_load_constantsF().

This commit is contained in:
Henri Verbeet 2012-10-18 22:12:50 +02:00 committed by Alexandre Julliard
parent 7365f9e6af
commit 0c1dd7f7d1
1 changed files with 1 additions and 1 deletions

View File

@ -539,7 +539,7 @@ static void shader_glsl_load_constantsF(const struct wined3d_shader *shader, con
/* 1.X pshaders have the constants clamped to [-1;1] implicitly. */
if (shader->reg_maps.shader_version.major == 1
&& shader_is_pshader_version(shader->reg_maps.shader_version.type))
&& shader->reg_maps.shader_version.type == WINED3D_SHADER_TYPE_PIXEL)
walk_constant_heap_clamped(gl_info, constants, constant_locations, heap, stack, version);
else
walk_constant_heap(gl_info, constants, constant_locations, heap, stack, version);