Henri Verbeet : wined3d: Only invalidate the INDRAWABLE location for onscreen surfaces in surface_realize_palette ().
Module: wine Branch: master Commit: d9ace3c9f72512046dc7d1a01a75ce97aefdb69a URL: http://source.winehq.org/git/wine.git/?a=commit;h=d9ace3c9f72512046dc7d1a01a... Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Tue Apr 26 19:24:16 2011 +0200 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. --- dlls/wined3d/surface.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index 8d03a72..143333d 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -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 {
participants (1)
-
Alexandre Julliard