Added missing pre-draw opengl callback