VS2010 buildfix
authorCaleb Cornett <caleb.cornett@outlook.com>
Tue, 07 Jul 2020 21:00:14 -0400
changeset 1280 d2a0d76469f9
parent 1279 b1f51cfa8933
child 1281 cfa04188aee2
VS2010 buildfix
mojoshader_vulkan.c
--- a/mojoshader_vulkan.c	Tue Jul 07 19:25:47 2020 -0400
+++ b/mojoshader_vulkan.c	Tue Jul 07 21:00:14 2020 -0400
@@ -638,7 +638,8 @@
     if ((vshader == NULL) && (pshader == NULL))
         return NULL;
 
-    result = ctx->malloc_fn(sizeof (MOJOSHADER_vkProgram), ctx->malloc_data);
+    result = (MOJOSHADER_vkProgram *) ctx->malloc_fn(sizeof (MOJOSHADER_vkProgram),
+                                                     ctx->malloc_data);
     if (result == NULL)
     {
         out_of_memory();