Skip to content

Commit

Permalink
[test] Add StretchRect src == dst test
Browse files Browse the repository at this point in the history
  • Loading branch information
misyltoad committed Dec 16, 2019
1 parent 1fd23a0 commit 35751fd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/d3d9/test_d3d9_triangle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,16 @@ class TriangleApp {

status = m_device->SetTexture(0, defaultTexture.ptr());

Com<IDirect3DSurface9> rt;
status = m_device->CreateRenderTarget(1280, 720, D3DFMT_X8R8G8B8, D3DMULTISAMPLE_NONE, 0, FALSE, &rt, nullptr);

Com<IDirect3DSurface9> rt2;
status = m_device->CreateRenderTarget(1280, 720, D3DFMT_X8R8G8B8, D3DMULTISAMPLE_NONE, 0, FALSE, &rt2, nullptr);

RECT stretchRect1 = { 0, 0, 640, 720 };
RECT stretchRect2 = { 640, 0, 1280, 720 };
status = m_device->StretchRect(rt.ptr(), &stretchRect1, rt.ptr(), &stretchRect2, D3DTEXF_LINEAR);

///

Com<IDirect3DSurface9> ds;
Expand Down

0 comments on commit 35751fd

Please sign in to comment.