Commit 51f05a1f authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Surfaces always have a container in surface_invalidate_location().

parent dc22a570
......@@ -5215,7 +5215,7 @@ void surface_invalidate_location(struct wined3d_surface *surface, DWORD location
{
TRACE("surface %p, location %s.\n", surface, debug_surflocation(location & SFLAG_LOCATIONS));
if ((location & (SFLAG_INTEXTURE | SFLAG_INSRGBTEX)) && surface->container)
if (location & (SFLAG_INTEXTURE | SFLAG_INSRGBTEX))
wined3d_texture_set_dirty(surface->container);
surface->flags &= ~(location & SFLAG_LOCATIONS);
......
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