OpenGL renderer - some cleanup