diff options
Diffstat (limited to 'o3d/core/cross/client.cc')
-rw-r--r-- | o3d/core/cross/client.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/o3d/core/cross/client.cc b/o3d/core/cross/client.cc index 2e0224d..a7f5924 100644 --- a/o3d/core/cross/client.cc +++ b/o3d/core/cross/client.cc @@ -452,13 +452,16 @@ String Client::GetScreenshotAsDataURL() { const RenderSurface* old_render_surface_; const RenderDepthStencilSurface* old_depth_surface_; + bool is_back_buffer; - renderer_->GetRenderSurfaces(&old_render_surface_, &old_depth_surface_); - renderer_->SetRenderSurfaces(surface, depth); + renderer_->GetRenderSurfaces(&old_render_surface_, &old_depth_surface_, + &is_back_buffer); + renderer_->SetRenderSurfaces(surface, depth, true); RenderClientInner(false, true); - renderer_->SetRenderSurfaces(old_render_surface_, old_depth_surface_); + renderer_->SetRenderSurfaces(old_render_surface_, old_depth_surface_, + is_back_buffer); Bitmap::Ref bitmap(surface->GetBitmap()); if (bitmap.IsNull()) { |