1
0
forked from 0ad/0ad

Fix Molten VK printing too many log messages

Reported by: @Langbart
Fixes #6719
Differential Revision: https://code.wildfiregames.com/D4913
This was SVN commit r27501.
This commit is contained in:
Stan 2023-01-29 13:03:58 +00:00
parent 5d7a8b9d1b
commit e27a3c4e53

View File

@ -405,6 +405,8 @@ bool CVideoMode::SetVideoMode(int w, int h, int bpp, bool fullscreen)
// MoltenVK - enable full component swizzling support.
setenv("MVK_CONFIG_FULL_IMAGE_VIEW_SWIZZLE", "1", 1);
CStr fullPathToVulkanLibrary = DllLoader::GenerateFilename("MoltenVK", "", ".dylib");
// MoltenVK - only print warnings and errors.
setenv("MVK_CONFIG_LOG_LEVEL", "2", 1);
if (SDL_Vulkan_LoadLibrary(fullPathToVulkanLibrary.c_str()) != 0)
{
LOGWARNING("Failed to load %s.", fullPathToVulkanLibrary.c_str());