From 5a8ffed774f3c22bc427d8db3c7db6da14a4cfd6 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Mon, 24 Jan 2022 13:59:06 +0100 Subject: [PATCH] wined3d: Use wined3d_mask_from_size() in find_ps_compile_args(). Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- 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 157aa6283ac..43c6bb402c0 100644 --- a/dlls/wined3d/shader.c +++ b/dlls/wined3d/shader.c @@ -4204,7 +4204,7 @@ void find_ps_compile_args(const struct wined3d_state *state, const struct wined3 } else { - args->texcoords_initialized = (1u << WINED3D_MAX_TEXTURES) - 1; + args->texcoords_initialized = wined3d_mask_from_size(WINED3D_MAX_TEXTURES); } args->pointsprite = state->render_states[WINED3D_RS_POINTSPRITEENABLE]