I want to build an application using OpenGL with two sub screens, following these steps:
- I want to create two sub-threads for each sub-screen to fill their own FBO.
- 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.