Original Post
Can meshes not be loaded once and drawn in two viewports? How can meshes be shown in two or more viewports? I'm able to get a mesh drawn in one window, but if it tries to draw in a second, I get this error:
"Both a vertex shader and pixel shader must be set on the device before any draw operations may be performed."
If I only draw in one viewport, it works fine and the meshes show up.
"Both a vertex shader and pixel shader must be set on the device before any draw operations may be performed."
If I only draw in one viewport, it works fine and the meshes show up.