Original Post
Hey,
I have been having some trouble getting multiple render windows to work. My engine can render to a single render window or viewport within that window with ease. However I am pulling my hair out trying to figure out why I will not work with multiple windows.
I used this article as a reference:
http://www.mvps.org/directx/articles/rendering_to_multiple_windows.htm
Here is what my code does:
-Creates a device with a backbuffer the size of the current desktop resolution and format. The focus window is the form on which my RenderSurface controls are contained.
-Creates the appropriate swap chains for each RenderSurface with their device window''s set properly
-Clear the zbuffer and frame buffer (to pure blue)
-Render all my stuff
-Call Present on each swap chain
Now in theory that should work, but of course nothing ever works the first time you try.
The problem is this: The RenderSurfaces only shows either full lime green or full pink (Which is pretty funny because when updated at 100+ fps it looks brown).
There are no errors or warnings outputted to dbmon.exe
nor are there any exceptions thrown (It is a C# application, basicly that means that all of the HRESULTS were success)
What could be possible causes or courses of action to solving the problem?
Thanks!
-Brandon