wined3d: Don't hardcode the ps_1_3 sampler limit in find_ps_compile_args.

This commit is contained in:
Stefan Dösinger 2013-04-13 16:37:17 +02:00 committed by Alexandre Julliard
parent 0680b1758d
commit 76234750a5
1 changed files with 1 additions and 1 deletions

View File

@ -2011,7 +2011,7 @@ void find_ps_compile_args(const struct wined3d_state *state,
if (shader->reg_maps.shader_version.major == 1
&& shader->reg_maps.shader_version.minor <= 3)
{
for (i = 0; i < 4; ++i)
for (i = 0; i < shader->limits.sampler; ++i)
{
DWORD flags = state->texture_states[i][WINED3D_TSS_TEXTURE_TRANSFORM_FLAGS];