Multiple OpenGL buffers???
I am using an MDI interface with OpenGL child(s) and i got a problem:
When i have multiple windows opened only the last one is drawn correctly, the others look like the same buffer is used and when i resize them the image gets more and more scattered (eventually it looks like you've simply taken a random piece of memory and drawn that to the screen. (when i close the last window the others keep on acting the same).
Does anyone know how to fix it, how to prevent multiple windows using the same OpenGL buffer?
Thanks in advance!
ps. I am using VC++ 6.0, MFC, MDI
[edited by - Tree Penguin on January 11, 2004 5:22:32 PM]
I''ve never done MDI applications, MFC applications, or multiple OpenGL windows but maybe there''s a CS_OWNDC type setting for the windows? They need to not share GDI memory obviously. Just a suggestion, I''m not sure how much I could actually help though

Check out my LlamaGL V2 under NeHe''s downloads. Piece apart my class and you''ll see how to use multiple windows. You need to treat each window as a different program.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement