vulkan: final cleanup, ensure it works fully on windows.

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@121 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
IoIxD
2025-10-01 23:26:56 +00:00
parent ddaaa37039
commit f7fbf66396
2 changed files with 50 additions and 22 deletions

View File

@@ -387,7 +387,7 @@ void vulkan_setup(MwWidget handle) {
vertBuf = malloc(vertFileSize);
memset(vertBuf, 0, vertFileSize);
amountRead = fread(vertBuf, 1, vertFileSize, vertFile);
printf("triangle.vert.spv: read %ld bytes\n", amountRead);
printf("triangle.vert.spv: read %zu bytes\n", amountRead);
vertInfo.sType = VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO;
vertInfo.pNext = NULL;
@@ -407,7 +407,7 @@ void vulkan_setup(MwWidget handle) {
fragBuf = malloc(fragFileSize);
memset(fragBuf, 0, fragFileSize);
amountRead = fread(fragBuf, 1, fragFileSize, fragFile);
printf("triangle.frag.spv: read %ld bytes\n", amountRead);
printf("triangle.frag.spv: read %zu bytes\n", amountRead);
fragInfo.sType = VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO;
fragInfo.pNext = NULL;