ddraw/tests: Correct executebuffer offsets.

This commit is contained in:
Stefan Dösinger 2015-03-20 12:47:12 +01:00 committed by Alexandre Julliard
parent daf3e8a0dc
commit 70c6666d1e
1 changed files with 2 additions and 2 deletions

View File

@ -6189,7 +6189,7 @@ static void test_texturemapblend(void)
memcpy(exec_desc.lpData, test2_quads, sizeof(test2_quads)); memcpy(exec_desc.lpData, test2_quads, sizeof(test2_quads));
ptr = ((BYTE *)exec_desc.lpData) + sizeof(test1_quads); ptr = ((BYTE *)exec_desc.lpData) + sizeof(test2_quads);
emit_process_vertices(&ptr, D3DPROCESSVERTICES_COPY, 0, 8); emit_process_vertices(&ptr, D3DPROCESSVERTICES_COPY, 0, 8);
emit_set_rs(&ptr, D3DRENDERSTATE_ALPHABLENDENABLE, FALSE); emit_set_rs(&ptr, D3DRENDERSTATE_ALPHABLENDENABLE, FALSE);
emit_set_rs(&ptr, D3DRENDERSTATE_TEXTUREHANDLE, texture_handle); emit_set_rs(&ptr, D3DRENDERSTATE_TEXTUREHANDLE, texture_handle);
@ -6202,7 +6202,7 @@ static void test_texturemapblend(void)
inst_length -= sizeof(test2_quads); inst_length -= sizeof(test2_quads);
hr = IDirect3DExecuteBuffer_Unlock(execute_buffer); hr = IDirect3DExecuteBuffer_Unlock(execute_buffer);
ok(SUCCEEDED(hr), "Failed to unlock execute buffer, hr %#x.\n", hr); ok(SUCCEEDED(hr), "Failed to unlock execute buffer, hr %#x.\n", hr);
set_execute_data(execute_buffer, 8, sizeof(test1_quads), inst_length); set_execute_data(execute_buffer, 8, sizeof(test2_quads), inst_length);
hr = IDirect3DDevice_BeginScene(device); hr = IDirect3DDevice_BeginScene(device);
ok(SUCCEEDED(hr), "Failed to begin scene, hr %#x.\n", hr); ok(SUCCEEDED(hr), "Failed to begin scene, hr %#x.\n", hr);