src/mesh.c

changeset 208
658bccb1bf73
parent 175
e5544920377e
--- a/src/mesh.c	Wed Jul 16 23:27:34 2025 +0200
+++ b/src/mesh.c	Thu Jul 17 19:44:22 2025 +0200
@@ -66,6 +66,7 @@
 void asc_mesh_draw_triangle_strip(const AscMesh *mesh) {
     glBindVertexArray(mesh->vao);
     glDrawArrays(GL_TRIANGLE_STRIP, 0, mesh->vtx_count);
+    asc_error_catch_all_gl();
 #ifndef NDEBUG
     // only unbind in debug mode to detect accidental re-use of the wrong VAO
     glBindVertexArray(0);
@@ -128,4 +129,6 @@
     glEnableVertexAttribArray(0);
     glVertexAttribPointer(1, 2, GL_FLOAT, GL_FALSE, sizeof(asc_vertex2d), (void*)offsetof(asc_vertex2d, uv));
     glEnableVertexAttribArray(1);
+
+    asc_error_catch_all_gl();
 }

mercurial