Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
Render targets clear (strange behaviour with console shown)
Browse files Browse the repository at this point in the history
  • Loading branch information
ufna committed May 2, 2014
1 parent 7a53dca commit 99a8ecf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/VaOceanPlugin/Private/VaOceanSimulatorComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ void UVaOceanSimulatorComponent::UpdateDisplacementMap(float WorldTime)
FUpdateDisplacementUniformBufferRef::CreateUniformBufferImmediate(Parameters, UniformBuffer_SingleUse);

RHISetRenderTarget(TextureRenderTarget->GetRenderTargetTexture(), NULL);
//RHIClear(true, FLinearColor::Black, false, 0.f, false, 0, FIntRect());

TShaderMapRef<FQuadVS> QuadVS(GetGlobalShaderMap());
TShaderMapRef<FUpdateDisplacementPS> UpdateDisplacementPS(GetGlobalShaderMap());
Expand Down Expand Up @@ -340,6 +341,7 @@ void UVaOceanSimulatorComponent::UpdateDisplacementMap(float WorldTime)
FUpdateDisplacementUniformBufferRef::CreateUniformBufferImmediate(Parameters, UniformBuffer_SingleUse);

RHISetRenderTarget(TextureRenderTarget->GetRenderTargetTexture(), NULL);
//RHIClear(true, FLinearColor::Black, false, 0.f, false, 0, FIntRect());

TShaderMapRef<FQuadVS> QuadVS(GetGlobalShaderMap());
TShaderMapRef<FGenGradientFoldingPS> GenGradientFoldingPS(GetGlobalShaderMap());
Expand Down

0 comments on commit 99a8ecf

Please sign in to comment.