mojoshader_vulkan.c
changeset 1280 d2a0d76469f9
parent 1277 da61410edbc9
child 1302 974d2cc3558e
equal deleted inserted replaced
1279:b1f51cfa8933 1280:d2a0d76469f9
   636     MOJOSHADER_vkProgram *result;
   636     MOJOSHADER_vkProgram *result;
   637 
   637 
   638     if ((vshader == NULL) && (pshader == NULL))
   638     if ((vshader == NULL) && (pshader == NULL))
   639         return NULL;
   639         return NULL;
   640 
   640 
   641     result = ctx->malloc_fn(sizeof (MOJOSHADER_vkProgram), ctx->malloc_data);
   641     result = (MOJOSHADER_vkProgram *) ctx->malloc_fn(sizeof (MOJOSHADER_vkProgram),
       
   642                                                      ctx->malloc_data);
   642     if (result == NULL)
   643     if (result == NULL)
   643     {
   644     {
   644         out_of_memory();
   645         out_of_memory();
   645         return NULL;
   646         return NULL;
   646     } // if
   647     } // if