useProgram method
Implementation
bool useProgram(Program? program) {
if (currentProgram != program) {
gl.useProgram(program);
currentProgram = program;
return true;
}
return false;
}
bool useProgram(Program? program) {
if (currentProgram != program) {
gl.useProgram(program);
currentProgram = program;
return true;
}
return false;
}