pub fn use_program(&mut self, program: GLuint) {
        match self.current_program {
            None => {},
            Some(current_program) => {
                if program == current_program { return; }
            },
        }
        
        gl::UseProgram(program);
        self.current_program = Some(program);
    }
/// Sets the current program only if the program is not in use.
Sets the current program only if the program is not in use.
Sets the current program only if the program is not in use .
pub fn use_program(&mut self, program: GLuint) {
        match self.current_program {
            None => {},
            Some(current_program) => {
                if program == current_program { return; }
            },
        }
        gl::UseProgram(program);
        self.current_program = Some(program);
    }
pub fn use_program ( & mut self , program : GLuint ) { match self . current_program { None => { } , Some ( current_program ) => { if program == current_program { return ; } } , } gl :: UseProgram ( program ) ; self . current_program = Some ( program ) ; }
Sets the current program only if the program is not in use.
Sets the current program only if the program is not in use .
&mut self
program
GLuint
&mut self
program
GLuint