Cleanup 1

This commit is contained in:
W2.Wizard
2021-02-21 10:05:47 +01:00
parent 115d6e46a8
commit 52bc268ee7
12 changed files with 126 additions and 67 deletions

View File

@@ -89,13 +89,11 @@ namespace FlaxEngine.GUI
/// <exception cref="System.ArgumentNullException">Invalid task.</exception>
public RenderOutputControl(SceneRenderTask task)
{
if (task == null)
throw new ArgumentNullException();
_task = task ?? throw new ArgumentNullException();
_backBuffer = GPUDevice.Instance.CreateTexture();
_resizeTime = ResizeCheckTime;
_task = task;
_task.Output = _backBuffer;
_task.End += OnEnd;