Always updating in use shader.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user