diff --git a/includes/learnopengl/shader_s.h b/includes/learnopengl/shader_s.h index 484e0ec49..dcdd645fb 100644 --- a/includes/learnopengl/shader_s.h +++ b/includes/learnopengl/shader_s.h @@ -70,7 +70,7 @@ class Shader } // activate the shader // ------------------------------------------------------------------------ - void use() + void use() const { glUseProgram(ID); }