Module: wine Branch: master Commit: 2423c9f00331d314a07cc45fd06cd359c566a684 URL: http://source.winehq.org/git/wine.git/?a=commit;h=2423c9f00331d314a07cc45fd0...
Author: H. Verbeet hverbeet@gmail.com Date: Tue Apr 10 19:14:27 2007 +0200
wined3d: Dirtify the sampler used by IWineD3DSurface_PreLoad in IWineD3DSurfaceImpl_BltOverride.
---
dlls/wined3d/surface.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index e846b18..6e09072 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