diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-12-03 17:33:43 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-12-03 17:33:43 +0000 |
| commit | 54bdcc4e5c3aac56d22da3aaf3cac10dd6807bdf (patch) | |
| tree | f3911330de9cac5af8f8045270b0879585e3bb2a /Tests/TestApp/src/TestTexturing.cpp | |
| parent | Fixed linux build (diff) | |
| download | DiligentEngine-54bdcc4e5c3aac56d22da3aaf3cac10dd6807bdf.tar.gz DiligentEngine-54bdcc4e5c3aac56d22da3aaf3cac10dd6807bdf.zip | |
Updated the API (SetVertexBuffers, SetIndexBuffers, DRAW_FLAGS and other)
Diffstat (limited to 'Tests/TestApp/src/TestTexturing.cpp')
| -rw-r--r-- | Tests/TestApp/src/TestTexturing.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/TestApp/src/TestTexturing.cpp b/Tests/TestApp/src/TestTexturing.cpp index dd020ee..e00981e 100644 --- a/Tests/TestApp/src/TestTexturing.cpp +++ b/Tests/TestApp/src/TestTexturing.cpp @@ -290,11 +290,11 @@ void TestTexturing::Draw() IBuffer *pBuffs[] = {m_pVertexBuff}; Uint32 Offsets[] = {0}; - m_pDeviceContext->SetVertexBuffers( 0, 1, pBuffs, Offsets, SET_VERTEX_BUFFERS_FLAG_RESET ); + m_pDeviceContext->SetVertexBuffers( 0, 1, pBuffs, Offsets, RESOURCE_STATE_TRANSITION_MODE_TRANSITION, SET_VERTEX_BUFFERS_FLAG_RESET ); Diligent::DrawAttribs DrawAttrs; DrawAttrs.NumVertices = 4; // Draw quad - DrawAttrs.Flags = DRAW_FLAG_TRANSITION_VERTEX_BUFFERS; + DrawAttrs.Flags = DRAW_FLAG_VERIFY_STATES; m_pDeviceContext->Draw( DrawAttrs ); SetStatus(TestResult::Succeeded); |
