mirror of
https://github.com/Linloir/SceneEditor.git
synced 2025-12-17 15:38:11 +08:00
Fix shader program attaching shader
- Add link function
This commit is contained in:
parent
e02160435a
commit
df6ebf1157
@ -88,6 +88,7 @@ inline void ShaderProgram::attachShader(const Shader& shader) const {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
OPENGL_EXTRA_FUNCTIONS->glAttachShader(_programId, shader.shaderId());
|
OPENGL_EXTRA_FUNCTIONS->glAttachShader(_programId, shader.shaderId());
|
||||||
|
OPENGL_EXTRA_FUNCTIONS->glLinkProgram(_programId);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void ShaderProgram::bind() const {
|
inline void ShaderProgram::bind() const {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user