From 994e0a66750b629b427a0ebfea4a7df9c261a207 Mon Sep 17 00:00:00 2001 From: BZLZHH Date: Mon, 9 Jun 2025 19:12:25 +0800 Subject: [PATCH] [Misc] (Debug): Improve some logging. --- MG/MG_GL/Implementations/GL/Framebuffer/GL_Framebuffer.cpp | 2 +- MG/MG_UTIL/Program/DebugTool.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/MG/MG_GL/Implementations/GL/Framebuffer/GL_Framebuffer.cpp b/MG/MG_GL/Implementations/GL/Framebuffer/GL_Framebuffer.cpp index cd3d2fc4..c96072f9 100644 --- a/MG/MG_GL/Implementations/GL/Framebuffer/GL_Framebuffer.cpp +++ b/MG/MG_GL/Implementations/GL/Framebuffer/GL_Framebuffer.cpp @@ -43,7 +43,7 @@ namespace MG_GL::GL { height = desc.Height; MG_Util::Debug::LogD("CreateRenderPassAndFramebuffer: Using depth/stencil attachment for dimensions: %ux%u", width, height); } else { - MG_Util::Debug::LogE("CreateRenderPassAndFramebuffer: Failed to determine framebuffer dimensions. No attachments."); + MG_Util::Debug::LogD("CreateRenderPassAndFramebuffer: Failed to determine framebuffer dimensions. No attachments."); return; } diff --git a/MG/MG_UTIL/Program/DebugTool.cpp b/MG/MG_UTIL/Program/DebugTool.cpp index e02e123c..ab4a6b9b 100644 --- a/MG/MG_UTIL/Program/DebugTool.cpp +++ b/MG/MG_UTIL/Program/DebugTool.cpp @@ -142,7 +142,6 @@ namespace MG_Util::Program { GLuint current = state.GetCurrentProgram(); if (current == 0) { - MG_Util::Debug::LogE("No active program"); return; } DumpUniforms(state, current);