How to render Compositing only by OpenGL?
That just not possible. OpenGL rendering only "saves" the current viewport content as an image. But when the only content created is in the Node Composit, that won't serve as a valid viewport content. Though there is a File Output Node for your Node Tree that you might use instead.