Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create separate category for shader log #1071

Merged
merged 4 commits into from
Apr 4, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/contour/display/ShaderConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ using namespace std::string_literals;
namespace contour::display
{

auto const ShaderLog = logstore::Category("shader", "Logs shader configuration");
Yaraslaut marked this conversation as resolved.
Show resolved Hide resolved

namespace
{
template <size_t N>
Expand Down Expand Up @@ -135,7 +137,7 @@ std::unique_ptr<QOpenGLShaderProgram> createShader(ShaderConfig const& _shaderCo
}

if (auto const logString = shader->log().toStdString(); !logString.empty())
errorlog()("Shader log: {}", logString);
ShaderLog()("Shader log: {}", logString);
Yaraslaut marked this conversation as resolved.
Show resolved Hide resolved

Guarantee(shader->isLinked());
return shader;
Expand Down