set up opengl render context
opengl is render state machine, render does not need to know DC? so put swap buffer in app

Signed-off-by: Dayong <DLi@esri.com>