summaryrefslogtreecommitdiffstats
path: root/src/Renderer.cpp
blob: 5fc8c2ef66a2844fc40a5d9102ffd3bed5b20ef6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "Renderer.hpp"

void RenderState::SetActiveVao(GLuint Vao) {
	if (Vao != ActiveVao) {
		glBindVertexArray(Vao);
		ActiveVao = Vao;
	}
}

void RenderState::SetActiveShader(GLuint Shader) {
	if (Shader != ActiveShader) {
		glUseProgram(Shader);
		ActiveShader = Shader;
	}
}