Commit 2ea74c2b authored by whitlocb's avatar whitlocb
Browse files

Fix crash that occurs when forgetting DrawPlots before saving an image

git-svn-id: 18c085ea-50e0-402c-830e-de6fd14e8384
parent 883acd28
......@@ -6778,12 +6778,17 @@ NetworkManager::RenderGeometry()
int nranks = PAR_Size();
// Resize in case we have not rendered before. This is not common.
renderState.haveCells.resize(nranks, 0);
// make the list of ranks that need to composite
// because they have local geometry. if a rank is not
// in this list then it will do no compositing work.
// rank 0 always receives the result, whether or not
// it is in the list.
int nranks = PAR_Size();
vector<int> ranksToComp;
for (int i = 0; i < nranks; ++i)
if (renderState.haveCells[i])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment