[2/2] wined3d: IWineD3DDeviceImpl_UpdateSurface: return
D3DERR_INVALIDCALL if source and dest format do not match
H. Verbeet
hverbeet at gmail.com
Fri Mar 9 05:06:48 CST 2007
On 09/03/07, Fabian Bieler <der.fabe at gmx.net> wrote:
> + if (destFormat != srcFormat) {
> + WARN("source %p and dest %p must match, returning WINED3DERR_INVALIDCALL\n", pSourceSurface, pDestinationSurface);
> + return WINED3DERR_INVALIDCALL;
> + }
You should probably print the actual formats there, using
debug_d3dformat(). Also, a test wouldn't hurt.
More information about the wine-devel
mailing list