Commit 8da8dc94 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

wined3d: Set the active texture in sampler_texdim().

This was probably accidentally omitted in 51e64b3f. In practice, this is guaranteed to work anyway, since due to the state table construction the equivalent misc handler, i.e. sampler(), is always guaranteed to be called right before the fragment pipeline handler for each stage. However, this is a subtle detail and best not to be depended on.
parent 60e4722b
...@@ -6811,6 +6811,7 @@ void sampler_texdim(struct wined3d_context *context, const struct wined3d_state ...@@ -6811,6 +6811,7 @@ void sampler_texdim(struct wined3d_context *context, const struct wined3d_state
if (isStateDirty(context, STATE_TEXTURESTAGE(sampler, WINED3D_TSS_COLOR_OP))) if (isStateDirty(context, STATE_TEXTURESTAGE(sampler, WINED3D_TSS_COLOR_OP)))
return; return;
wined3d_context_gl_active_texture(context_gl, context_gl->gl_info, sampler);
texture_activate_dimensions(wined3d_state_get_ffp_texture(state, sampler), context_gl->gl_info); texture_activate_dimensions(wined3d_state_get_ffp_texture(state, sampler), context_gl->gl_info);
} }
......
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