NVIDIA GameWorks Integration

Two things:
First, I found another null pointer reference in WaveWorks branch resulting in “Fatal error” on loading project. To fix it just replace lines 175-187 of file Engine\Source\Runtime\Engine\Private\WaveWorksRender.cpp with code:



float YAxisMultiplier = 1.0f;

if (WaveWorks->ShoreLineDistanceFieldTexture != nullptr) {
	FIntPoint RenderTargetSize(WaveWorks->ShoreLineDistanceFieldTexture->GetSurfaceWidth(), WaveWorks->ShoreLineDistanceFieldTexture->GetSurfaceHeight());
	if (RenderTargetSize.X > RenderTargetSize.Y)
	{
		// if the viewport is wider than it is tall
		YAxisMultiplier = RenderTargetSize.X / (float)RenderTargetSize.Y;
	}
}


I have already made pull request on Nvidia repository.

Second, if anyone is still interested in 4.15.1 then I have created a fork of Nvidia repository with UE 4.15.1 branch having merged: