From fe5cf538f542ddf039553a1539eb67b0d7bd9784 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sun, 9 Dec 2018 16:04:09 -0800 Subject: Updated core & samples submodules. Using convenience constructors for DrawAttribs --- Tests/TestApp/src/TestTexturing.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Tests/TestApp/src/TestTexturing.cpp') diff --git a/Tests/TestApp/src/TestTexturing.cpp b/Tests/TestApp/src/TestTexturing.cpp index e00981e..75c6914 100644 --- a/Tests/TestApp/src/TestTexturing.cpp +++ b/Tests/TestApp/src/TestTexturing.cpp @@ -292,9 +292,8 @@ void TestTexturing::Draw() Uint32 Offsets[] = {0}; 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_VERIFY_STATES; + // Draw quad + Diligent::DrawAttribs DrawAttrs(4, DRAW_FLAG_VERIFY_STATES); m_pDeviceContext->Draw( DrawAttrs ); SetStatus(TestResult::Succeeded); -- cgit v1.2.3