Original Post
I have a really silly question to ask. I tried to draw inside a thread, but it does not seem to work. I'm writing a Windows App with VC++ and OpenGL. Originally, I had a function call that did my drawing. I would call it and it would do: glClear(GL_COLOR_BUFFER_BIT| GL_DEPTH_BUFFER_BIT); glLoadIdentity(); glBegin(GL_POINTS); define some points ...... glEnd(); glFlush(); It worked fine. I created a thread function using the same code. Now, I have a function which creates a thread to execute the same code as above. It does not work. I placed a break point inside the thread and it seems to be executing. I tried to force a OnPaint and Invalidate but it does nothing. What's going on?