Slight fixes in the renderer code to make use of hardware drawing
Replace NULL with nullptr and some cleanup