Commit 53b6e77a authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

wined3d: Initialise stream frequency to 1.

parent f7b31209
......@@ -5388,7 +5388,7 @@ static void context_load_numbered_arrays(struct wined3d_context *context,
stream = &state->streams[element->stream_idx];
if ((stream->flags & WINED3DSTREAMSOURCE_INSTANCEDATA) && !context->instance_count)
context->instance_count = state->streams[0].frequency ? state->streams[0].frequency : 1;
context->instance_count = state->streams[0].frequency;
if (gl_info->supported[ARB_INSTANCED_ARRAYS])
{
......
......@@ -1448,6 +1448,9 @@ static void state_init_default(struct wined3d_state *state, const struct wined3d
state->blend_factor.g = 1.0f;
state->blend_factor.b = 1.0f;
state->blend_factor.a = 1.0f;
for (i = 0; i < MAX_STREAMS; ++i)
state->streams[i].frequency = 1;
}
void state_init(struct wined3d_state *state, struct wined3d_fb_state *fb,
......@@ -1496,6 +1499,9 @@ static void stateblock_state_init_default(struct wined3d_stateblock_state *state
state->blend_factor.g = 1.0f;
state->blend_factor.b = 1.0f;
state->blend_factor.a = 1.0f;
for (i = 0; i < MAX_STREAMS; ++i)
state->streams[i].frequency = 1;
}
void wined3d_stateblock_state_init(struct wined3d_stateblock_state *state,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment