diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-11-15 17:47:56 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-11-15 17:47:56 +0000 |
commit | f2c5923f005a3e22ddc12a4bb700d838f470bb1d (patch) | |
tree | 8fffc7af4951512c3e281670415f47afc2ca609b /gfx/gl/program.h | |
parent | Add some tests over the behaviour of windows and contexts and glStuff (diff) | |
download | ilt-f2c5923f005a3e22ddc12a4bb700d838f470bb1d.tar.bz2 ilt-f2c5923f005a3e22ddc12a4bb700d838f470bb1d.tar.xz ilt-f2c5923f005a3e22ddc12a4bb700d838f470bb1d.zip |
Shaders can be deleted once attached to a program
Diffstat (limited to 'gfx/gl/program.h')
-rw-r--r-- | gfx/gl/program.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<typename... S> Program(const S &... srcs) { - (glAttachShader(m_program, srcs), ...); + (glAttachShader(m_program, srcs.compile()), ...); linkAndValidate(); } virtual ~Program() = default; |