diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-01-05 19:44:04 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-01-05 19:44:04 +0000 |
commit | 6053bf1db0cb07550a5b68f17fd099ef6a35b0eb (patch) | |
tree | 79b14992fd57087313d24b58dfbc43e6b79edc84 /gfx/gl | |
parent | Use VertexArrayObject for SceneShader::PointLight (diff) | |
download | ilt-6053bf1db0cb07550a5b68f17fd099ef6a35b0eb.tar.bz2 ilt-6053bf1db0cb07550a5b68f17fd099ef6a35b0eb.tar.xz ilt-6053bf1db0cb07550a5b68f17fd099ef6a35b0eb.zip |
Include uniform name in required uniform does not exist error message
Diffstat (limited to 'gfx/gl')
-rw-r--r-- | gfx/gl/program.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |