Fix: GPU: Missing error logs

Regression from d5f84d0016.
This commit is contained in:
Miguel Pozo
2025-07-14 18:53:35 +02:00
parent 40339e3edd
commit 05dcc0377b
2 changed files with 2 additions and 2 deletions

View File

@@ -248,7 +248,7 @@ void Shader::print_log(Span<StringRefNull> sources,
CLG_Level level = error ? CLG_LEVEL_ERROR : CLG_LEVEL_WARN;
if (CLOG_CHECK(&LOG, CLG_LEVEL_INFO) && level >= CLG_LEVEL_WARN) {
if (CLOG_CHECK(&LOG, level)) {
if (DEBUG_LOG_SHADER_SRC_ON_ERROR && error) {
CLG_log_str(LOG.type, level, this->name, stage, sources_combined.c_str());
}

View File

@@ -241,7 +241,7 @@ messenger_callback(VkDebugUtilsMessageSeverityFlagBitsEXT message_severity,
callback_data->pMessage);
const bool do_labels = (callback_data->objectCount + callback_data->cmdBufLabelCount +
callback_data->queueLabelCount) > 0;
const bool log_active = CLOG_CHECK(&LOG, CLG_LEVEL_INFO) || level >= CLG_LEVEL_WARN;
const bool log_active = CLOG_CHECK(&LOG, level);
if (do_labels && log_active) {
VKDebuggingTools &debugging_tools = *reinterpret_cast<VKDebuggingTools *>(user_data);
debugging_tools.print_labels(callback_data);