summaryrefslogblamecommitdiffstats
path: root/src/Renderer.cpp
blob: 947fd6f4d810177909e6cb9fa91b83337baa499a (plain) (tree)
1
2
3
4
5
6
7
8

                       

                   
                                            
                       

                           







                                                  
#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;
	}
}