diff options
Diffstat (limited to 'layers/device_limits.cpp')
| -rw-r--r-- | layers/device_limits.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/layers/device_limits.cpp b/layers/device_limits.cpp index c8ff7fc1..9489eb62 100644 --- a/layers/device_limits.cpp +++ b/layers/device_limits.cpp @@ -117,13 +117,7 @@ static void init_device_limits(layer_data *my_data) if (debug_action & VK_DBG_LAYER_ACTION_LOG_MSG) { option_str = getLayerOption("DeviceLimitsLogFilename"); - if (option_str) - { - log_output = fopen(option_str, "w"); - } - if (log_output == NULL) - log_output = stdout; - + log_output = getLayerLogOutput(option_str, "DeviceLimits"); layer_create_msg_callback(my_data->report_data, report_flags, log_callback, (void *) log_output, &my_data->logging_callback); } |
