[RFC PATCH 1/2] d3d9/tests: Test that GetRasterStatus returns D3DERR_INVALIDCALL if D3DCAPS_READ_SCANLINE isn't set.

Henri Verbeet hverbeet at gmail.com
Sat Jul 17 15:25:50 CDT 2010


On 17 July 2010 12:43, Florian Köberle <florian at fkoeberle.de> wrote:
> +    if ((caps.Caps & D3DCAPS_READ_SCANLINE) == 0) {
> +        ZeroMemory( &rasterStatus, sizeof(rasterStatus) );
> +        hr = IDirect3DDevice9_GetRasterStatus(pDevice, 0, &rasterStatus);
> +        todo_wine
> +        ok(hr == D3DERR_INVALIDCALL, "GetRasterStatus should return D3DERR_INVALIDCALL\n");
> +    } else {
> +        skip("Device supports D3DCAPS_READ_SCANLINE\n");
> +    }
> +
I think in principle this makes sense, but in practice I'd expect
drivers not supporting D3DCAPS_READ_SCANLINE to be rare enough that
this will pretty much always get skipped.



More information about the wine-devel mailing list