mirror of
https://github.com/yquake2/ref_vk.git
synced 2024-11-10 06:41:45 +00:00
Merge pull request #33 from devnexen/vk_common_arg_fix
fix printf format warnings to represent VkDeviceSize (aka uint64_t).
This commit is contained in:
commit
d39193d419
2 changed files with 3 additions and 1 deletions
|
@ -715,9 +715,11 @@ YQ2_ATTR_NORETURN void Com_Quit(void);
|
|||
* format specifiers unter mingw. */
|
||||
#ifdef WIN32
|
||||
#define YQ2_COM_PRId64 "%I64d"
|
||||
#define YQ2_COM_PRIu64 "%I64u"
|
||||
#define YQ2_COM_PRIdS "%Id"
|
||||
#else
|
||||
#define YQ2_COM_PRId64 "%ld"
|
||||
#define YQ2_COM_PRIu64 "%llu"
|
||||
#define YQ2_COM_PRIdS "%zd"
|
||||
#endif
|
||||
|
||||
|
|
|
@ -2510,7 +2510,7 @@ uint8_t *QVk_GetStagingBuffer(VkDeviceSize size, int alignment, VkCommandBuffer
|
|||
stagingBuffer = &vk_stagingBuffers[vk_activeStagingBuffer];
|
||||
if (size > stagingBuffer->resource.size)
|
||||
{
|
||||
R_Printf(PRINT_ALL, "%s: %d: Resize stanging buffer" YQ2_COM_PRId64 "->" YQ2_COM_PRId64 "\n",
|
||||
R_Printf(PRINT_ALL, "%s: %d: Resize stanging buffer" YQ2_COM_PRIu64 "->" YQ2_COM_PRIu64 "\n",
|
||||
__func__, vk_activeStagingBuffer, stagingBuffer->resource.size, size);
|
||||
|
||||
DestroyStagingBuffer(stagingBuffer);
|
||||
|
|
Loading…
Reference in a new issue