wined3d: Use unsigned constants in shifts.

Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Matteo Bruni 2016-09-22 20:39:39 +02:00 committed by Alexandre Julliard
parent ae2aa2df59
commit da7d53782f
2 changed files with 6 additions and 6 deletions

View File

@ -9163,7 +9163,7 @@ static void glsl_vertex_pointsprite_core(struct wined3d_context *context,
static void glsl_vertex_pipe_shademode(struct wined3d_context *context,
const struct wined3d_state *state, DWORD state_id)
{
context->shader_update_mask |= 1 << WINED3D_SHADER_TYPE_VERTEX;
context->shader_update_mask |= 1u << WINED3D_SHADER_TYPE_VERTEX;
}
static void glsl_vertex_pipe_clip_plane(struct wined3d_context *context,
@ -9591,7 +9591,7 @@ static void glsl_fragment_pipe_color_key(struct wined3d_context *context,
static void glsl_fragment_pipe_shademode(struct wined3d_context *context,
const struct wined3d_state *state, DWORD state_id)
{
context->shader_update_mask |= 1 << WINED3D_SHADER_TYPE_PIXEL;
context->shader_update_mask |= 1u << WINED3D_SHADER_TYPE_PIXEL;
}
static const struct StateEntryTemplate glsl_fragment_pipe_state_template[] =

View File

@ -4953,10 +4953,10 @@ void wined3d_format_get_float_color_key(const struct wined3d_format *format,
case WINED3DFMT_R8G8B8X8_UNORM:
case WINED3DFMT_R16G16_UNORM:
case WINED3DFMT_B10G10R10A2_UNORM:
slop.r = 0.5f / ((1 << format->red_size) - 1);
slop.g = 0.5f / ((1 << format->green_size) - 1);
slop.b = 0.5f / ((1 << format->blue_size) - 1);
slop.a = 0.5f / ((1 << format->alpha_size) - 1);
slop.r = 0.5f / ((1u << format->red_size) - 1);
slop.g = 0.5f / ((1u << format->green_size) - 1);
slop.b = 0.5f / ((1u << format->blue_size) - 1);
slop.a = 0.5f / ((1u << format->alpha_size) - 1);
float_colors[0].r = color_to_float(key->color_space_low_value, format->red_size, format->red_offset)
- slop.r;