Commit 9a45a637 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

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.
parent 936b9501
......@@ -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");
......
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