Commit 76234750 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

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

parent 0680b175
......@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment