d3d8/tests: Remove an always false condition (PVS-Studio).

oldstable
Michael Stefaniuc 2014-11-02 22:29:55 +01:00 committed by Alexandre Julliard
parent 25b4a92813
commit 4a67e66a3d
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ static DWORD getPixelColor(IDirect3DDevice8 *device, UINT x, UINT y)
return 0xdeadbeef;
}
hr = IDirect3DTexture8_GetSurfaceLevel(tex, 0, &surf);
if(FAILED(hr) || !tex ) /* This is not a test */
if (FAILED(hr)) /* This is not a test */
{
trace("Can't get surface from texture, hr=%#08x\n", hr);
ret = 0xdeadbeee;