Use opengl function even if bool(func) is False

Sometimes it seems to work anyway: Nico reported this for
glBindFramebuffer and glGenerateMipmap.