Fix r_showLightGrid crashing