wined3d: Remove no-op min() with magic number (PVS_Studio).

This commit is contained in:
Michael Stefaniuc 2014-10-30 00:36:21 +01:00 committed by Alexandre Julliard
parent afea35f56a
commit 00c25959d1
1 changed files with 1 additions and 1 deletions

View File

@ -4257,7 +4257,7 @@ static GLuint shader_arb_generate_vshader(const struct wined3d_shader *shader,
{
int i;
const char *one = arb_get_helper_value(WINED3D_SHADER_TYPE_VERTEX, ARB_ONE);
for(i = 0; i < min(8, MAX_REG_TEXCRD); i++)
for(i = 0; i < MAX_REG_TEXCRD; i++)
{
if (reg_maps->texcoord_mask[i] && reg_maps->texcoord_mask[i] != WINED3DSP_WRITEMASK_ALL)
shader_addline(buffer, "MOV result.texcoord[%u].w, %s\n", i, one);