I want to build an application using OpenGL with two sub screens, following these steps:

  1. I want to create two sub-threads for each sub-screen to fill their own FBO.
  2. I want to draw two rectangles filled with two FBO's texture in main thread.

I know that OpenGL can only bind one FBO at a time.
So I think two sub-threads could not bind their own FBO at the same time.

Is there any way to bind different FBO in different thread at the same time? If there is no way to achieve this, does this mean that OpenGL could only work in one thread?

Why do I need two sub thread?
For real time application, just save time.

0 Answers