Commit e55527b8 authored by fogal1's avatar fogal1

Set HW/SW rendering for the callback.

Outside of the engine, we don't know how many displays we'll have,
and which ones are hardware contexts.  External code (in
particular the volume plot) would use this callback object to
figure out what kind of renderers to create.

So we ignore the existing configuration and set hw/sw rendering
based on what we've figured out during initialization.

git-svn-id: 18c085ea-50e0-402c-830e-de6fd14e8384
parent cd930796
......@@ -3485,6 +3485,10 @@ Engine::GetProcessAttributes()
// Tom Fogal, Sun Mar 8 00:25:52 MST 2009
// Allow a HW context even in serial mode.
// Tom Fogal, Tue Jun 9 20:12:21 MDT 2009
// Set the callback HW/SW rendering, since code outside of the Engine will
// use that to query what kind of rendering to do.
// ****************************************************************************
......@@ -3521,12 +3525,14 @@ Engine::SetupDisplay()
if(this->nDisplays > 0)
this->renderingDisplay = Display::Create(Display::D_X);
display = 0;
if(this->renderingDisplay == NULL)
this->renderingDisplay = Display::Create(Display::D_MESA);
split(this->X_Args, PAR_Rank(), display)))
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