d3d9/tests: Replace some '#if 0's with 'if (0)'s.

This commit is contained in:
Francois Gouget 2007-01-06 19:31:20 +01:00 committed by Alexandre Julliard
parent 4bc31a962a
commit 3ba0e7b01b
1 changed files with 1 additions and 3 deletions

View File

@ -135,12 +135,10 @@ static void test_surface_alignment(IDirect3DDevice9 *device_ptr)
hr = IDirect3DSurface9_LockRect(surface_ptr, &lockedRect, NULL, 0);
ok(hr == D3D_OK, "IDirect3DSurface9_LockRect returned %08x\n", hr);
ok(!(lockedRect.Pitch & 3), "Surface pitch %d is not 32-bit aligned\n", lockedRect.Pitch);
#if 0
/* Some applications also depend on the exact pitch, rather than just
* the alignment. However, this test will fail or succeed depending
* on the NP2 mode we're using. */
ok(lockedRect.Pitch == 12, "Got pitch %d, expected 12\n", lockedRect.Pitch);
#endif
if (0) ok(lockedRect.Pitch == 12, "Got pitch %d, expected 12\n", lockedRect.Pitch);
hr = IDirect3DSurface9_UnlockRect(surface_ptr);
IDirect3DSurface9_Release(surface_ptr);
}