- Fixed compilation with MinGW.
This commit is contained in:
parent
f25e5c738c
commit
416f5d03b7
3 changed files with 4 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
|
||||
#include <assert.h>
|
||||
#include <algorithm>
|
||||
|
||||
#ifdef _WIN32
|
||||
#define VK_USE_PLATFORM_WIN32_KHR
|
||||
|
|
@ -49,7 +50,7 @@ bool I_GetVulkanPlatformExtensions(unsigned int *count, const char **names)
|
|||
else
|
||||
{
|
||||
const bool result = *count >= extensionCount;
|
||||
*count = min(*count, extensionCount);
|
||||
*count = std::min<unsigned int>(*count, extensionCount);
|
||||
|
||||
for (unsigned int i = 0; i < *count; ++i)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue