Add OpenGL framework, swap buffers for double buffer