wined3d: Compare the actual formats.

This commit is contained in:
Henri Verbeet 2009-03-23 08:30:15 +01:00 committed by Alexandre Julliard
parent 24a4503d61
commit 89721c2173
1 changed files with 2 additions and 2 deletions

View File

@ -1105,7 +1105,7 @@ HRESULT WINAPI IWineD3DBaseSurfaceImpl_Blt(IWineD3DSurface *iface, const RECT *D
dEntry = This->resource.format_desc; dEntry = This->resource.format_desc;
if (Src) if (Src)
{ {
if(This->resource.format_desc != Src->resource.format_desc) if (This->resource.format_desc->format != Src->resource.format_desc->format)
{ {
Src = surface_convert_format(Src, dEntry->format); Src = surface_convert_format(Src, dEntry->format);
if(!Src) { if(!Src) {
@ -1676,7 +1676,7 @@ HRESULT WINAPI IWineD3DBaseSurfaceImpl_BltFast(IWineD3DSurface *iface, DWORD dst
FIXME("trans arg not supported when a FOURCC surface is involved\n"); FIXME("trans arg not supported when a FOURCC surface is involved\n");
if (dstx || dsty) if (dstx || dsty)
FIXME("offset for destination surface is not supported\n"); FIXME("offset for destination surface is not supported\n");
if (Src->resource.format_desc != This->resource.format_desc) if (Src->resource.format_desc->format != This->resource.format_desc->format)
{ {
FIXME("FOURCC->FOURCC copy only supported for the same type of surface\n"); FIXME("FOURCC->FOURCC copy only supported for the same type of surface\n");
ret = WINED3DERR_WRONGTEXTUREFORMAT; ret = WINED3DERR_WRONGTEXTUREFORMAT;