From 2423c9f00331d314a07cc45fd06cd359c566a684 Mon Sep 17 00:00:00 2001 From: "H. Verbeet" Date: Tue, 10 Apr 2007 19:14:27 +0200 Subject: [PATCH] wined3d: Dirtify the sampler used by IWineD3DSurface_PreLoad in IWineD3DSurfaceImpl_BltOverride. --- dlls/wined3d/surface.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index e846b18e975..6e090725595 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -2717,6 +2717,11 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, RECT * } /* Call preload for the surface to make sure it isn't dirty */ + if (GL_SUPPORT(ARB_MULTITEXTURE)) { + GL_EXTCALL(glActiveTextureARB(GL_TEXTURE0_ARB)); + checkGLcall("glActiveTextureARB"); + } + IWineD3DDeviceImpl_MarkStateDirty(This->resource.wineD3DDevice, STATE_SAMPLER(0)); IWineD3DSurface_PreLoad((IWineD3DSurface *) This); /* Make sure that the top pixel is always above the bottom pixel, and keep a seperate upside down flag