Module: wine Branch: master Commit: 9a45a637d54e78dd1d60019f0f6296182091d521 URL: https://gitlab.winehq.org/wine/wine/-/commit/9a45a637d54e78dd1d60019f0f62961...
Author: Zebediah Figura zfigura@codeweavers.com Date: Thu Nov 16 11:52:02 2023 -0600
wined3d: Check WINED3D_TEXTURE_POW2_MAT_IDENT instead of context->lastWasPow2Texture.
As with the previous commit, this is clearer and avoids a state ordering assumption.
---
dlls/wined3d/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c index dd83b2fcef7..ac53f477edd 100644 --- a/dlls/wined3d/utils.c +++ b/dlls/wined3d/utils.c @@ -5865,7 +5865,7 @@ void get_texture_matrix(const struct wined3d_context *context, const struct wine : WINED3DFMT_UNKNOWN, device->shader_backend->shader_has_ffp_proj_control(device->shader_priv), mat);
- if ((context->lastWasPow2Texture & (1u << tex)) && texture) + if (texture && !(texture->flags & WINED3D_TEXTURE_POW2_MAT_IDENT)) { if (generated) FIXME("Non-power-of-two texture being used with generated texture coords.\n");