vulkan_test2
diff src/vksdr.c @ 9:5fbfd7f8fc24
minor
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 22 Jun 2018 02:40:22 +0300 |
parents | 633b522539a1 |
children |
line diff
1.1 --- a/src/vksdr.c Fri Jun 22 02:08:06 2018 +0300 1.2 +++ b/src/vksdr.c Fri Jun 22 02:40:22 2018 +0300 1.3 @@ -11,7 +11,7 @@ 1.4 VkShaderModuleCreateInfo inf; 1.5 VkShaderModule sdr; 1.6 FILE *fp; 1.7 - char *buf = 0; 1.8 + void *buf = 0; 1.9 1.10 if(!(fp = fopen(fname, "rb"))) { 1.11 fprintf(stderr, "vku_load_shader: failed to load %s: %s\n", fname, strerror(errno)); 1.12 @@ -33,7 +33,7 @@ 1.13 memset(&inf, 0, sizeof inf); 1.14 inf.sType = VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO; 1.15 inf.codeSize = size; 1.16 - inf.pCode = (const uint32_t*)buf; 1.17 + inf.pCode = buf; 1.18 1.19 if(vkCreateShaderModule(vkdev, &inf, 0, &sdr) != 0) { 1.20 fprintf(stderr, "vku_load_shader: failed to create shader: %s\n", fname);