From f2c5923f005a3e22ddc12a4bb700d838f470bb1d Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 15 Nov 2022 17:47:56 +0000 Subject: Shaders can be deleted once attached to a program --- gfx/gl/program.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gfx/gl/program.h') diff --git a/gfx/gl/program.h b/gfx/gl/program.h index f14b0f3..eb10888 100644 --- a/gfx/gl/program.h +++ b/gfx/gl/program.h @@ -12,7 +12,7 @@ class Program { public: template Program(const S &... srcs) { - (glAttachShader(m_program, srcs), ...); + (glAttachShader(m_program, srcs.compile()), ...); linkAndValidate(); } virtual ~Program() = default; -- cgit v1.2.3