blob: 5fc8c2ef66a2844fc40a5d9102ffd3bed5b20ef6 (
plain) (
tree)
|
|
#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;
}
}
|