File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,10 @@ bool EntityPlayground::OpenPlaygroundHere(Entity entity) {
5050 return false ;
5151 }
5252 SinglePassCallback callback = [&](RenderPass& pass) -> bool {
53- return entity.Render (*content_context, pass);
53+ content_context->GetRenderTargetCache ()->Start ();
54+ bool result = entity.Render (*content_context, pass);
55+ content_context->GetRenderTargetCache ()->End ();
56+ return result;
5457 };
5558 return Playground::OpenPlaygroundHere (callback);
5659}
@@ -70,7 +73,10 @@ bool EntityPlayground::OpenPlaygroundHere(EntityPlaygroundCallback callback) {
7073 wireframe = !wireframe;
7174 content_context.SetWireframe (wireframe);
7275 }
73- return callback (content_context, pass);
76+ content_context.GetRenderTargetCache ()->Start ();
77+ bool result = callback (content_context, pass);
78+ content_context.GetRenderTargetCache ()->End ();
79+ return result;
7480 };
7581 return Playground::OpenPlaygroundHere (pass_callback);
7682}
You can’t perform that action at this time.
0 commit comments