Skip to content

Commit 30aa753

Browse files
Allow settings with only debug logging to work
Changes the logic of the loader settings file to allow settings files which just the stderr_log. This means settings that do not with to alter the layers can be achieved.
1 parent b05d038 commit 30aa753

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

loader/settings.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,9 @@ VkResult parse_layer_configurations(const struct loader_instance* inst, cJSON* s
161161
VkResult res = VK_SUCCESS;
162162

163163
cJSON* layer_configurations = loader_cJSON_GetObjectItem(settings_object, "layers");
164+
// If the layers object isn't present, return early with success to allow the settings file to still apply
164165
if (NULL == layer_configurations) {
165-
return VK_ERROR_INITIALIZATION_FAILED;
166+
return VK_SUCCESS;
166167
}
167168

168169
uint32_t layer_configurations_count = loader_cJSON_GetArraySize(layer_configurations);

0 commit comments

Comments
 (0)