blob: 947fd6f4d810177909e6cb9fa91b83337baa499a (
plain) (
tree)
|
|
#include "Renderer.hpp"
#include <optick.h>
void RenderState::SetActiveVao(GLuint Vao) {
OPTICK_EVENT();
glBindVertexArray(Vao);
ActiveVao = Vao;
}
void RenderState::SetActiveShader(GLuint Shader) {
if (Shader != ActiveShader) {
glUseProgram(Shader);
ActiveShader = Shader;
}
}
|