Skip to content

Commit

Permalink
01-cubes: Fixed topology to match combo box.
Browse files Browse the repository at this point in the history
  • Loading branch information
bkaradzic committed Oct 2, 2018
1 parent 474f6e1 commit 0513698
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/01-cubes/cubes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down Expand Up @@ -166,13 +166,13 @@ class ExampleCubes : public entry::AppI
// 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.
Expand Down

0 comments on commit 0513698

Please sign in to comment.