2
0
Эх сурвалжийг харах

[Examples] Free Allocated Matrices. (#2425)

Anilforextra 3 жил өмнө
parent
commit
9c66e2f97e

+ 6 - 0
examples/shaders/shaders_mesh_instancing.c

@@ -217,6 +217,12 @@ int main(void)
 
     // De-Initialization
     //--------------------------------------------------------------------------------------
+    // Free allocated matrices
+    RL_FREE(rotations);
+    RL_FREE(rotationsInc);
+    RL_FREE(translations);
+    RL_FREE(transforms);
+
     CloseWindow();        // Close window and OpenGL context
     //--------------------------------------------------------------------------------------