Always updating in use shader.

This commit is contained in:
Rinnegatamante
2020-10-21 23:30:02 +02:00
parent 9f267c904d
commit cf96e7d39e
+2 -2
View File
@@ -235,10 +235,10 @@ Shader::create(const char **vsrc, const char **fsrc, bool is_2d)
void
Shader::use(void)
{
if(currentShader != this){
//if(currentShader != this){
glUseProgram(this->program);
currentShader = this;
}
//}
}
void