wined3d: Preload the correct texture location.

This commit is contained in:
Stefan Dösinger 2009-08-03 15:37:02 +02:00 committed by Alexandre Julliard
parent f53451ddac
commit f3b39d9085
1 changed files with 1 additions and 1 deletions

View File

@ -749,7 +749,7 @@ void surface_internal_preload(IWineD3DSurface *iface, enum WINED3DSRGB srgb)
if (IWineD3DSurface_GetContainer(iface, &IID_IWineD3DBaseTexture, (void **)&baseTexture) == WINED3D_OK) {
IWineD3DBaseTextureImpl *tex_impl = (IWineD3DBaseTextureImpl *) baseTexture;
TRACE("Passing to container\n");
tex_impl->baseTexture.internal_preload(baseTexture, SRGB_RGB);
tex_impl->baseTexture.internal_preload(baseTexture, srgb);
IWineD3DBaseTexture_Release(baseTexture);
} else {
TRACE("(%p) : About to load surface\n", This);