blob: 0db23dbfab052b4d7c37f4e693aed9ddb148f77a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include "Renderer.hpp"
void RenderState::SetActiveVao(GLuint Vao) {
glBindVertexArray(Vao);
ActiveVao = Vao;
}
void RenderState::SetActiveShader(GLuint Shader) {
if (Shader != ActiveShader) {
glUseProgram(Shader);
ActiveShader = Shader;
}
}
|