index_t needs to be same size as GL_UNSIGNED_INT

This commit is contained in:
Hartmut Seichter 2020-12-02 23:45:56 +01:00
parent 7e14aea49e
commit 5833691cb7
2 changed files with 2 additions and 2 deletions

View file

@ -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> ;

View file

@ -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