summaryrefslogtreecommitdiff
path: root/gfx/gl
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/gl')
-rw-r--r--gfx/gl/program.h2
-rw-r--r--gfx/gl/sceneShader.h2
-rw-r--r--gfx/gl/shadowMapper.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/gfx/gl/program.h b/gfx/gl/program.h
index eb10888..fd9edbf 100644
--- a/gfx/gl/program.h
+++ b/gfx/gl/program.h
@@ -10,7 +10,7 @@ class Location;
using ProgramRef = glRef<GLuint, &glCreateProgram, &glDeleteProgram>;
class Program {
public:
- template<typename... S> Program(const S &... srcs)
+ template<typename... S> explicit Program(const S &... srcs)
{
(glAttachShader(m_program, srcs.compile()), ...);
linkAndValidate();
diff --git a/gfx/gl/sceneShader.h b/gfx/gl/sceneShader.h
index 62df9bf..9db6ebf 100644
--- a/gfx/gl/sceneShader.h
+++ b/gfx/gl/sceneShader.h
@@ -9,7 +9,7 @@ class SceneShader {
class SceneProgram : public Program {
public:
template<typename... S>
- inline SceneProgram(const S &... srcs) :
+ inline explicit SceneProgram(const S &... srcs) :
Program {srcs...}, viewProjectionLoc {*this, "viewProjection"}, viewPortLoc {*this, "viewPort"}
{
}
diff --git a/gfx/gl/shadowMapper.h b/gfx/gl/shadowMapper.h
index 7065ffe..0ce6898 100644
--- a/gfx/gl/shadowMapper.h
+++ b/gfx/gl/shadowMapper.h
@@ -9,7 +9,7 @@ class Camera;
class ShadowMapper {
public:
- ShadowMapper(const glm::ivec2 & size);
+ explicit ShadowMapper(const glm::ivec2 & size);
static constexpr std::size_t SHADOW_BANDS {4};
template<std::size_t S> struct Definitions {