Added doc for the OpenGL renderer and a warning if malloc failed in OpenGL renderer