(GL) Less chance of segfaults if gl is NULL