wined3d: Remove no-op min() with magic number (PVS_Studio).
This commit is contained in:
parent
afea35f56a
commit
00c25959d1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue