From 9df2199349aedd363b565db069959f5ce8e9f35b Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 20 Jul 2024 10:54:54 +0100 Subject: Creating a program with no shaders is not valid --- gfx/gl/program.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gfx/gl/program.h b/gfx/gl/program.h index 1a1c306..fa6dac9 100644 --- a/gfx/gl/program.h +++ b/gfx/gl/program.h @@ -1,6 +1,6 @@ #pragma once -#include "shader.h" +#include "shader.h" // IWYU pragma: export #include #include #include @@ -12,6 +12,8 @@ using ProgramRef = glRef; class Program { public: + Program() = delete; + template explicit Program(const S &... srcs) { (glAttachShader(m_program, srcs.compile()), ...); -- cgit v1.2.3