I am having some problems with an interactive openGL slider that I have created in Delphi. If I put 2 of them on the same form than 1 of them will not respond properly (if at all) to the mouse. I tried seperating them by puting them on individual panels but that didn’t help any.
These controls are plain TPanels which have beed setup to receive openGL directives.
As Tom said, befor you can send GL commands to any rendering context you must make it current using the function, wglMakeCurrent. Otherwise you must deal with the two rendering contexts through two different threads. OpenGL supports one rendering context at a time for every thread.