From 5833691cb7d0764c6822743ec07b25759e743ff6 Mon Sep 17 00:00:00 2001 From: Hartmut Seichter Date: Wed, 2 Dec 2020 23:45:56 +0100 Subject: [PATCH] index_t needs to be same size as GL_UNSIGNED_INT --- src/core/include/pw/core/mesh.hpp | 2 +- src/visual/src/pipeline.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/include/pw/core/mesh.hpp b/src/core/include/pw/core/mesh.hpp index 5fe6ea2..2bd5c93 100644 --- a/src/core/include/pw/core/mesh.hpp +++ b/src/core/include/pw/core/mesh.hpp @@ -43,7 +43,7 @@ public: points }; - using index_t = size_t; + using index_t = uint32_t; using valuearray_t = std::vector ; using indexarray_t = std::vector ; diff --git a/src/visual/src/pipeline.cpp b/src/visual/src/pipeline.cpp index 255effe..85c40ed 100644 --- a/src/visual/src/pipeline.cpp +++ b/src/visual/src/pipeline.cpp @@ -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