Add missing name some for GPU resources

This commit is contained in:
Wojtek Figat
2021-06-04 12:38:44 +02:00
parent 3a6b7ea80b
commit dfee74ad1f
4 changed files with 5 additions and 5 deletions

View File

@@ -96,7 +96,7 @@ namespace FlaxEngine.GUI
{
_task = task ?? throw new ArgumentNullException();
_backBuffer = GPUDevice.Instance.CreateTexture();
_backBuffer = GPUDevice.Instance.CreateTexture("RenderOutputControl.BackBuffer");
_resizeTime = ResizeCheckTime;
_task.Output = _backBuffer;
@@ -245,7 +245,7 @@ namespace FlaxEngine.GUI
if (_backBufferOld == null && _backBuffer.IsAllocated)
{
_backBufferOld = _backBuffer;
_backBuffer = GPUDevice.Instance.CreateTexture();
_backBuffer = GPUDevice.Instance.CreateTexture("RenderOutputControl.BackBuffer");
}
// Set timeout to remove old buffer