[PATCH 4/4] wined3d: Don't hardcode the ps_1_3 sampler limit in find_ps_compile_args
Stefan Dösinger
stefan at codeweavers.com
Sat Apr 13 09:37:17 CDT 2013
---
dlls/wined3d/shader.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wined3d/shader.c b/dlls/wined3d/shader.c
index 0431c1f..3aec36c 100644
--- a/dlls/wined3d/shader.c
+++ b/dlls/wined3d/shader.c
@@ -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];
--
1.8.1.5
More information about the wine-patches
mailing list