wined3d: Turn char_component and color into static constants.

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alex Henrie 2015-12-23 21:56:57 -07:00 committed by Alexandre Julliard
parent cb03e216e5
commit 7e96e4ccf4
2 changed files with 2 additions and 2 deletions

View File

@ -3218,8 +3218,8 @@ static void vshader_add_footer(struct shader_arb_ctx_priv *priv_ctx,
}
else if (args->clip.boolclip.clip_texcoord)
{
static const char component[4] = {'x', 'y', 'z', 'w'};
unsigned int cur_clip = 0;
char component[4] = {'x', 'y', 'z', 'w'};
const char *zero = arb_get_helper_value(WINED3D_SHADER_TYPE_VERTEX, ARB_ZERO);
for (i = 0; i < gl_info->limits.clipplanes; ++i)

View File

@ -679,7 +679,7 @@ static void create_dummy_textures(struct wined3d_device *device, struct wined3d_
count = min(MAX_COMBINED_SAMPLERS, gl_info->limits.combined_samplers);
for (i = 0; i < count; ++i)
{
DWORD color = 0x000000ff;
static const DWORD color = 0x000000ff;
/* Make appropriate texture active */
context_active_texture(context, gl_info, i);