From 6e94848aec5d42eed5f9e1f5548ade26915ce90b Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 4 Jun 2024 21:14:45 +0100 Subject: Tidy many stringy messes with std::format --- gfx/gl/program.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gfx/gl/program.cpp') diff --git a/gfx/gl/program.cpp b/gfx/gl/program.cpp index 0b60eaa..7287fde 100644 --- a/gfx/gl/program.cpp +++ b/gfx/gl/program.cpp @@ -1,5 +1,6 @@ #include "program.h" #include "shader.h" +#include #include #include #include @@ -30,6 +31,6 @@ Program::RequiredUniformLocation::RequiredUniformLocation(GLuint program, const UniformLocation {program, name} { if (location < 0) { - throw std::logic_error(std::string {"Required uniform does not exist: "} + name); + throw std::logic_error {std::format("Required uniform does not exist: {}", name)}; } } -- cgit v1.2.3