Henri Verbeet : wined3d: Use wined3d_mask_from_size() in stateblock_savedstates_set_all().
Alexandre Julliard
julliard at winehq.org
Mon Jan 24 16:28:06 CST 2022
Module: wine
Branch: master
Commit: 98d3624f2321d28b855445789de458b9f918bfc7
URL: https://source.winehq.org/git/wine.git/?a=commit;h=98d3624f2321d28b855445789de458b9f918bfc7
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Mon Jan 24 13:59:07 2022 +0100
wined3d: Use wined3d_mask_from_size() in stateblock_savedstates_set_all().
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wined3d/stateblock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wined3d/stateblock.c b/dlls/wined3d/stateblock.c
index 6d174652b4a..c5ca5990009 100644
--- a/dlls/wined3d/stateblock.c
+++ b/dlls/wined3d/stateblock.c
@@ -219,7 +219,7 @@ static void stateblock_savedstates_set_all(struct wined3d_saved_states *states,
stateblock_set_all_bits(states->renderState, WINEHIGHEST_RENDER_STATE + 1);
for (i = 0; i < WINED3D_MAX_TEXTURES; ++i) states->textureState[i] = 0x3ffff;
for (i = 0; i < WINED3D_MAX_COMBINED_SAMPLERS; ++i) states->samplerState[i] = 0x3ffe;
- states->clipplane = (1u << WINED3D_MAX_CLIP_DISTANCES) - 1;
+ states->clipplane = wined3d_mask_from_size(WINED3D_MAX_CLIP_DISTANCES);
states->pixelShaderConstantsB = 0xffff;
states->pixelShaderConstantsI = 0xffff;
states->vertexShaderConstantsB = 0xffff;
More information about the wine-cvs
mailing list