From 8c5cd360783744346a427dd0faf6801454059636 Mon Sep 17 00:00:00 2001 From: Zack Buhman Date: Mon, 25 Dec 2023 22:03:20 +0800 Subject: [PATCH] icosphere: increase the size of ta_parameter_buf This might accidentally work, but the number of ta parameters far exceeded the previous value. --- example/icosphere.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/icosphere.cpp b/example/icosphere.cpp index 1d7ae30..c4172f7 100644 --- a/example/icosphere.cpp +++ b/example/icosphere.cpp @@ -21,7 +21,7 @@ constexpr float half_degree = 0.01745329f / 2; -#define MODEL icosphere +#define MODEL suzanne vec3 rotate(const vec3& vertex, float theta) { @@ -219,7 +219,7 @@ void init_texture_memory(const struct opb_size& opb_size) ); } -uint32_t _ta_parameter_buf[((32 * (5 * 6 + 1)) + 32) / 4]; +uint32_t _ta_parameter_buf[((32 * 8192) + 32) / 4]; void main() {