blob: 0db23dbfab052b4d7c37f4e693aed9ddb148f77a (
plain) (
tree)
|
|
#include "Renderer.hpp"
void RenderState::SetActiveVao(GLuint Vao) {
glBindVertexArray(Vao);
ActiveVao = Vao;
}
void RenderState::SetActiveShader(GLuint Shader) {
if (Shader != ActiveShader) {
glUseProgram(Shader);
ActiveShader = Shader;
}
}
|