shithub: tinygl

Download patch

ref: 8ef17051b4ecdad9c02000fad0fdd9d1c64ea0c2
parent: 2b707ea80c26f2f238eefbad3a234dd71953fb6d
author: David <gek@katherine>
date: Tue Mar 9 17:02:37 EST 2021

Automatic commit.

--- a/SDL_Examples/model.c
+++ b/SDL_Examples/model.c
@@ -114,9 +114,9 @@
 	// f_ as float and not double!
 	// Remember that!
 	vec3* points, uint npoints, vec3* colors, vec3* normals, vec3* texcoords) {
-	if (!points)
-		return;
+	if (!points)return;
 	FreeModelArray();
+	ModelArrayLoaded = 1;
 	ModelArray.npoints = npoints;
 	ModelArray.points = malloc(sizeof(float) * npoints * 3);
 	if(normals)