wined3d: Only invalidate the INDRAWABLE location for onscreen surfaces in surface_realize_palette().

For offscreen surfaces this might actually remove the texture we just loaded.
This commit is contained in:
Henri Verbeet 2011-04-26 19:24:16 +02:00 committed by Alexandre Julliard
parent a05841bd1a
commit d9ace3c9f7
1 changed files with 2 additions and 1 deletions

View File

@ -611,7 +611,8 @@ static void surface_realize_palette(IWineD3DSurfaceImpl *surface)
surface_load_location(surface, SFLAG_INTEXTURE, NULL);
/* We want to force a palette refresh, so mark the drawable as not being up to date */
surface_modify_location(surface, SFLAG_INDRAWABLE, FALSE);
if (!surface_is_offscreen(surface))
surface_modify_location(surface, SFLAG_INDRAWABLE, FALSE);
}
else
{