Henri Verbeet : wined3d: Explicitly load and modify the surface in color_fill_fbo().

Alexandre Julliard julliard at winehq.org
Wed Feb 3 09:33:05 CST 2010


Module: wine
Branch: master
Commit: 84913109f6396c6aa6cd18e17cca089e04d90687
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=84913109f6396c6aa6cd18e17cca089e04d90687

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Wed Feb  3 11:02:24 2010 +0100

wined3d: Explicitly load and modify the surface in color_fill_fbo().

---

 dlls/wined3d/device.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 1b5db14..79be3a8 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -5387,6 +5387,9 @@ static void color_fill_fbo(IWineD3DDevice *iface, IWineD3DSurface *surface,
     IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *) iface;
     struct wined3d_context *context;
 
+    if (rect) IWineD3DSurface_LoadLocation(surface, SFLAG_INDRAWABLE, NULL);
+    IWineD3DSurface_ModifyLocation(surface, SFLAG_INDRAWABLE, TRUE);
+
     if (!surface_is_offscreen(surface))
     {
         TRACE("Surface %p is onscreen\n", surface);




More information about the wine-cvs mailing list