From 051369831dd50c31384f72a27de888d7e7fb0cb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Tue, 2 Oct 2018 07:59:56 -0700 Subject: [PATCH] 01-cubes: Fixed topology to match combo box. --- examples/01-cubes/cubes.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/01-cubes/cubes.cpp b/examples/01-cubes/cubes.cpp index 4bd81f262..b26b0f1fd 100644 --- a/examples/01-cubes/cubes.cpp +++ b/examples/01-cubes/cubes.cpp @@ -106,8 +106,8 @@ static const char* s_ptNames[] static const uint64_t s_ptState[] { - BGFX_STATE_PT_TRISTRIP, UINT64_C(0), + BGFX_STATE_PT_TRISTRIP, BGFX_STATE_PT_LINES, BGFX_STATE_PT_POINTS, }; @@ -166,13 +166,13 @@ public: // Create static index buffer for triangle strip rendering. m_ibh[0] = bgfx::createIndexBuffer( // Static data can be passed with bgfx::makeRef - bgfx::makeRef(s_cubeTriStrip, sizeof(s_cubeTriStrip) ) + bgfx::makeRef(s_cubeTriList, sizeof(s_cubeTriList) ) ); // Create static index buffer for triangle list rendering. m_ibh[1] = bgfx::createIndexBuffer( // Static data can be passed with bgfx::makeRef - bgfx::makeRef(s_cubeTriList, sizeof(s_cubeTriList) ) + bgfx::makeRef(s_cubeTriStrip, sizeof(s_cubeTriStrip) ) ); // Create static index buffer for triangle list rendering.