wined3d: Use wined3d_mask_from_size() in stateblock_savedstates_set_all().
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5a8ffed774
commit
98d3624f23
|
@ -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);
|
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_TEXTURES; ++i) states->textureState[i] = 0x3ffff;
|
||||||
for (i = 0; i < WINED3D_MAX_COMBINED_SAMPLERS; ++i) states->samplerState[i] = 0x3ffe;
|
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->pixelShaderConstantsB = 0xffff;
|
||||||
states->pixelShaderConstantsI = 0xffff;
|
states->pixelShaderConstantsI = 0xffff;
|
||||||
states->vertexShaderConstantsB = 0xffff;
|
states->vertexShaderConstantsB = 0xffff;
|
||||||
|
|
Loading…
Reference in New Issue