Module: wine Branch: master Commit: 8da8dc94e27f0254cd1c21e833ef5205d310abb5 URL: https://gitlab.winehq.org/wine/wine/-/commit/8da8dc94e27f0254cd1c21e833ef520...
Author: Zebediah Figura zfigura@codeweavers.com Date: Fri Nov 10 18:20:25 2023 -0600
wined3d: Set the active texture in sampler_texdim().
This was probably accidentally omitted in 51e64b3fe95afb3246c8690d9ea1e7b4c38ce2b4.
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.
---
dlls/wined3d/utils.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c index d9a051065ef..05a0ab36af8 100644 --- a/dlls/wined3d/utils.c +++ b/dlls/wined3d/utils.c @@ -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))) 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); }