Matteo Bruni (@Mystral) commented about dlls/d3dx9_36/tests/texture.c:
texture = NULL;
hr = D3DXCreateTextureFromFileInMemoryEx(device, dds_24bit, sizeof(dds_24bit), 32, 32, 6,
0, D3DFMT_UNKNOWN, D3DPOOL_DEFAULT, D3DX_DEFAULT, test_filter_values[i].filter, 0, NULL, NULL, &texture);
todo_wine_if(FAILED(hr)) ok(hr == D3D_OK, "Unexpected hr %#lx.\n", hr);
if (texture)
IDirect3DTexture9_Release(texture);
winetest_pop_context();
- }
- /* Mip skip bits are 30-26, 25-23 are unused, setting them does nothing. */
- texture = NULL;
- hr = D3DXCreateTextureFromFileInMemoryEx(device, dds_24bit, sizeof(dds_24bit), 32, 32, 6,
0, D3DFMT_UNKNOWN, D3DPOOL_DEFAULT, D3DX_DEFAULT, 0x03800001, 0, NULL, NULL, &texture);
- ok(hr == D3D_OK, "Unexpected hr %#lx.\n", hr);
- if (texture)
This `if` is unnecessary, here and below for the cube and volume cases.