Commit ef647c9a authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

d3d9: Skip gracefully if A16R16G16B16 is not supported.

parent e9827cc9
...@@ -5591,6 +5591,10 @@ static void pshader_version_varying_test(IDirect3DDevice9 *device) { ...@@ -5591,6 +5591,10 @@ static void pshader_version_varying_test(IDirect3DDevice9 *device) {
hr = IDirect3DDevice9_CreateTexture(device, 512, 512, 1, 0, D3DFMT_A16B16G16R16, D3DPOOL_MANAGED, &texture, NULL); hr = IDirect3DDevice9_CreateTexture(device, 512, 512, 1, 0, D3DFMT_A16B16G16R16, D3DPOOL_MANAGED, &texture, NULL);
ok(hr == D3D_OK, "IDirect3DDevice9_CreateTexture returned %08x\n", hr); ok(hr == D3D_OK, "IDirect3DDevice9_CreateTexture returned %08x\n", hr);
if(FAILED(hr)) {
skip("D3DFMT_A16B16G16R16 textures not supported\n");
return;
}
hr = IDirect3DTexture9_LockRect(texture, 0, &lr, NULL, 0); hr = IDirect3DTexture9_LockRect(texture, 0, &lr, NULL, 0);
ok(hr == D3D_OK, "IDirect3DTexture9_LockRect returned %08x\n", hr); ok(hr == D3D_OK, "IDirect3DTexture9_LockRect returned %08x\n", hr);
for(y = 0; y < 512; y++) { for(y = 0; y < 512; y++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment