OpenGL Multithread
-
Hi everyone,
i am using opengl to render video frames from opencv.For example, I want to displays several webcams in several opengl widgets .This works fine when having only one instance of a QGLWidget rendering one camera but when running several instances of this widget it seems that they are all sharing the same texture and i get flickering image with the cameras image superposed.I also try this with video file(USING DIRECTSHOW->OPENCV for image proccesing->QGLWIDGET to render).
I believe it has to be something with multithread opengl but I still cant figure it out. I would appreciate if anyone can help me with this.Thanks
[Edit: Removed the all upper-case SHOUTING! from the title to make it less Exciting! -mlong]