-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
Hi,
I have some nitpicky style comments. I don't demand that they are addressed, I'm ok with the patch as it is if Henri accepts it.
- IDirect3DSurface9 *backbuffer, *stencilsurface, *offscreensurface, *rendertarget, *rendertarget2;
You shouldn't need the two rendertarget variables. In fact, one common surface variable should do, and I don't think it would make the test more difficult to read.
- hr = IDirect3DDevice9_GetRenderTarget(device, 0, &rendertarget);
- ok(SUCCEEDED(hr), "GetRenderTarget failed, hr %#x.\n", hr);
- IDirect3DSurface9_PreLoad(rendertarget);
- IDirect3DSurface9_Release(rendertarget);
We already know from other tests that on device creation backbuffer 0 is the render target. I don't think it's necessary to explicitly test render target 0.
- hr = IDirect3DDevice9_GetBackBuffer(device, 0, 0, 0, &backbuffer);
"D3DBACKBUFFER_TYPE_MONO" would be better than "0". Yeah, I know many other tests use 0, and I just sent a patch that shows that this parameter is just ignored...
Cheers, Stefan