Commit 17a687a1 authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

d3d9/tests: Test creating a texture on a NULL HWND device.

parent a9604de2
......@@ -26419,6 +26419,7 @@ static void test_nrm_instruction(void)
static void test_desktop_window(void)
{
IDirect3DVertexShader9 *shader;
IDirect3DTexture9 *texture;
IDirect3DDevice9 *device;
unsigned int color;
IDirect3D9 *d3d;
......@@ -26476,6 +26477,10 @@ static void test_desktop_window(void)
device = create_device(d3d, NULL, NULL, TRUE);
ok(device != NULL, "Failed to create a D3D device\n");
hr = IDirect3DDevice9_CreateTexture(device, 1, 1, 1, 0, D3DFMT_A8R8G8B8, D3DPOOL_SYSTEMMEM, &texture, NULL);
ok(hr == D3D_OK, "Got unexpected hr %#lx.\n", hr);
IDirect3DTexture9_Release(texture);
hr = IDirect3DDevice9_GetDeviceCaps(device, &caps);
ok(SUCCEEDED(hr), "Failed to get device caps, hr %#lx.\n", hr);
if (caps.VertexShaderVersion >= D3DVS_VERSION(1, 1))
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