mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-11-11 21:08:40 +00:00
Fix debug mode being set too late
-Early error messages were always being skipped
This commit is contained in:
committed by
Sam Lantinga
parent
d635a064aa
commit
cbcb145eb4
@@ -11774,6 +11774,9 @@ static bool VULKAN_PrepareDriver(SDL_VideoDevice *_this, SDL_PropertiesID props)
|
|||||||
|
|
||||||
renderer = (VulkanRenderer *)SDL_calloc(1, sizeof(*renderer));
|
renderer = (VulkanRenderer *)SDL_calloc(1, sizeof(*renderer));
|
||||||
if (renderer) {
|
if (renderer) {
|
||||||
|
// This needs to be set early for log filtering
|
||||||
|
renderer->debugMode = SDL_GetBooleanProperty(props, SDL_PROP_GPU_DEVICE_CREATE_DEBUGMODE_BOOLEAN, false);
|
||||||
|
|
||||||
// Opt out device features (higher compatibility in exchange for reduced functionality)
|
// Opt out device features (higher compatibility in exchange for reduced functionality)
|
||||||
renderer->desiredDeviceFeatures.samplerAnisotropy = SDL_GetBooleanProperty(props, SDL_PROP_GPU_DEVICE_CREATE_FEATURE_ANISOTROPY_BOOLEAN, true) ? VK_TRUE : VK_FALSE;
|
renderer->desiredDeviceFeatures.samplerAnisotropy = SDL_GetBooleanProperty(props, SDL_PROP_GPU_DEVICE_CREATE_FEATURE_ANISOTROPY_BOOLEAN, true) ? VK_TRUE : VK_FALSE;
|
||||||
renderer->desiredDeviceFeatures.depthClamp = SDL_GetBooleanProperty(props, SDL_PROP_GPU_DEVICE_CREATE_FEATURE_DEPTH_CLAMPING_BOOLEAN, true) ? VK_TRUE : VK_FALSE;
|
renderer->desiredDeviceFeatures.depthClamp = SDL_GetBooleanProperty(props, SDL_PROP_GPU_DEVICE_CREATE_FEATURE_DEPTH_CLAMPING_BOOLEAN, true) ? VK_TRUE : VK_FALSE;
|
||||||
|
|||||||
Reference in New Issue
Block a user