I am trying to build up a multi-threaded opengl environment with command dispatchers and stuff, but here i want to demonstrate a simple case which has the same issue as i have. This demo will show up a bluish screen having a white triangle on upper left side. I initiate a thread for objects (buffers/arrays/programs...) for which the context sharing is enabled, then I render on the main thread.
The problem is on main thread
BindVertexArray causes an error with code InvalidOperation. I have tested
BindTextureetc. on my other application, and they are no problem. Even
UseProgramis not an issue.
I am using an ATI 4650, forward compatible context with version 3.2 (output window shows both contexts are initiated successfully)
I have attached the simple project with two configurations Debug and Debug-Threaded. Debug version uses main thread for initialization and it shows the window successfully, but threaded version fails on my computer. Is there anything that I am doing wrong or is this a driver issue?