Skip to content

Commit b612bd6

Browse files
committed
begin is techincally "const"
1 parent 285cc6e commit b612bd6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Source/Renderer/Shader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ bool Shader::Compile(const std::string& vertexPath, const std::string& fragPath)
100100
void Shader::Enable() {
101101
rlEnableShader(m_ProgramID);
102102
}
103-
void Shader::Begin() {
103+
void Shader::Begin() const {
104104
rlSetShader(m_ProgramID, m_Locations.data());
105105
glUseProgram(m_ProgramID);
106106
}

Source/Renderer/Shader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ namespace RTE {
4040
void Enable();
4141

4242
/// Begin shader draw mode. Flushes the active batch and enables this shader.
43-
void Begin();
43+
void Begin() const;
4444

4545
/// Disables this shader and sets up the default raylib shader. Flushes the active batch and clears bound textures.
4646
void End() const;

0 commit comments

Comments
 (0)