From 6053bf1db0cb07550a5b68f17fd099ef6a35b0eb Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 5 Jan 2023 19:44:04 +0000 Subject: Include uniform name in required uniform does not exist error message --- gfx/gl/program.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gfx') diff --git a/gfx/gl/program.cpp b/gfx/gl/program.cpp index c36cc80..7791e3e 100644 --- a/gfx/gl/program.cpp +++ b/gfx/gl/program.cpp @@ -30,6 +30,6 @@ Program::RequiredUniformLocation::RequiredUniformLocation(GLuint program, const UniformLocation {program, name} { if (location < 0) { - throw std::logic_error("Required uniform does not exist"); + throw std::logic_error(std::string {"Required uniform does not exist: "} + name); } } -- cgit v1.2.3