message: implement ability to change frame buffer type dynamically in fb sg node
diff: @@ -56,8 +56,8 @@ namespace ospray {
  NodeFlags::valid_min_max |
  NodeFlags::gui_slider).setMinMax(1.f, 64.f);
  - createChild("format", "string", std::string("srgba"), NodeFlags::required |
  - NodeFlags::valid_whitelist).setWhiteList(
  + createChild("format", "string", std::string("srgba"), NodeFlags::required
  + | NodeFlags::valid_whitelist).setWhiteList(
  {std::string("rgba8"), std::string("srgba")});
  createChild("useVarianceBuffer", "bool", true);
  @@ -72,6 +72,7 @@ namespace ospray {
  || child("size").lastModified() >= lastCommitted()
  || child("displayWall").lastModified() >= lastCommitted()
  || child("useVarianceBuffer").lastModified() >= lastCommitted()
  + || child("format").lastModified() >= lastCommitted()
  || child("toneMapping").lastModified() >= lastCommitted())
  {
  std::string displayWall = child("displayWall").valueAs<std::string>();
  @@ -81,14 +82,11 @@ namespace ospray {
  createFB();
  bool toneMapping = child("toneMapping").valueAs<bool>();
  - if (toneMapping)
  - {
  + if (toneMapping) {
  toneMapper = ospNewPixelOp("tonemapper");
  ospCommit(toneMapper);
  ospSetPixelOp(ospFrameBuffer, toneMapper);
  - }
  - else
  - {
  + } else {
  toneMapper = nullptr;
  }
  @@ -111,8 +109,7 @@ namespace ospray {
  ospCommit(ospFrameBuffer);
  }
  - if (toneMapper)
  - {
  + if (toneMapper) {
  float exposure = child("exposure").valueAs<float>();
  float linearExposure = exp2(exposure);
  ospSet1f(toneMapper, "exposure", linearExposure);
  @@ -168,9 +165,11 @@ namespace ospray {
  {
  auto fbsize = size();
  auto format = OSP_FB_SRGBA;
  - if (child("format").valueAs<std::string>() == "rgba8")
  + auto formatString = child("format").valueAs<std::string>();
  + if (formatString == "rgba8")
  format = OSP_FB_RGBA8;
  - //TODO: check other formats here
  + else if (formatString == "srgba")
  + format = OSP_FB_SRGBA;
  auto useVariance = child("useVarianceBuffer").valueAs<bool>();
  ospFrameBuffer = ospNewFrameBuffer((osp::vec2i&)fbsize,
  