Skip to content

Commit

Permalink
4.22: Fix deprecation warning for ENQUEUE_UNIQUE_RENDER_COMMAND_ONEPA…
Browse files Browse the repository at this point in the history
…RAMETER_DECLARE.

This commit fixes the deprecation warning and uses ENQUEUE_RENDER_COMMAND
instead.

Signed-off-by: Elvis Dowson <[email protected]>
  • Loading branch information
edowson committed Jun 1, 2019
1 parent b0e145a commit 27d310d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Unreal/Plugins/AirSim/Source/RenderRequest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,12 @@ void RenderRequest::getScreenshot(std::shared_ptr<RenderParams> params[], std::v
// The completion is called immeidately after GameThread sends the
// rendering commands to RenderThread. Hence, our ExecuteTask will
// execute *immediately* after RenderThread renders the scene!
ENQUEUE_UNIQUE_RENDER_COMMAND_ONEPARAMETER(
SceneDrawCompletion,
RenderRequest *, This, this,
{
This->ExecuteTask();
}
);
RenderRequest* This = this;
ENQUEUE_RENDER_COMMAND(SceneDrawCompletion)(
[This](FRHICommandListImmediate& RHICmdList)
{
This->ExecuteTask();
});

game_viewport_->bDisableWorldRendering = saved_DisableWorldRendering_;

Expand Down

0 comments on commit 27d310d

Please sign in to comment.