wined3d: Dirtify the sampler used by IWineD3DSurface_PreLoad in IWineD3DSurfaceImpl_BltOverride.

This commit is contained in:
H. Verbeet 2007-04-10 19:14:27 +02:00 committed by Alexandre Julliard
parent 8d3c078e6c
commit 2423c9f003
1 changed files with 5 additions and 0 deletions

View File

@ -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