mojoshader_metal.c
changeset 1252 ed07dd994125
parent 1250 30f8b128b906
child 1279 b1f51cfa8933
--- a/mojoshader_metal.c	Sun Apr 26 22:35:13 2020 -0400
+++ b/mojoshader_metal.c	Sat May 02 18:29:29 2020 -0400
@@ -396,6 +396,7 @@
 {
     ctx->free_fn(ctx->buffersInUse, ctx->malloc_data);
     ctx->free_fn(ctx, ctx->malloc_data);
+    ctx = NULL;
 } // MOJOSHADER_mtlDestroyContext
 
 void *MOJOSHADER_mtlCompileLibrary(MOJOSHADER_effect *effect)