index_t needs to be same size as GL_UNSIGNED_INT
This commit is contained in:
parent
7e14aea49e
commit
5833691cb7
2 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ public:
|
|||
points
|
||||
};
|
||||
|
||||
using index_t = size_t;
|
||||
using index_t = uint32_t;
|
||||
|
||||
using valuearray_t = std::vector<real_t> ;
|
||||
using indexarray_t = std::vector<index_t> ;
|
||||
|
|
|
@ -54,7 +54,7 @@ struct triangle_renderer
|
|||
const float s = 1.0f;
|
||||
|
||||
|
||||
#if 1
|
||||
#if 0
|
||||
geometry::vertex3array_t vertices = {
|
||||
{ 0.0f, 0.5f, z_val} // 0
|
||||
,{ 0.5f, 0.0f, z_val} // 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue