public boolean useShader ( GLShader shader ) { if ( curShader == shader ) return false ; checkGLError ( "useShader" ) ; flush ( true ) ; curShader = shader ; return true ; }
Makes the supplied shader the current shader flushing any previous shader .