remove unused variable
use error instead of warn if creating a shader program fails