From b0e1ad3cf8541d19bf04906d2450d7b6dfadbaa0 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Thu, 1 Dec 2022 13:20:11 -0800 Subject: [PATCH] add note about disposing swapchain texture --- src/Graphics/CommandBuffer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Graphics/CommandBuffer.cs b/src/Graphics/CommandBuffer.cs index ded0829..5f9432d 100644 --- a/src/Graphics/CommandBuffer.cs +++ b/src/Graphics/CommandBuffer.cs @@ -1612,11 +1612,11 @@ namespace MoonWorks.Graphics /// Can return null if the swapchain is unavailable. The user should ALWAYS handle the case where this occurs. /// If null is returned, presentation will not occur. /// It is an error to acquire two swapchain textures from the same window in one command buffer. + /// It is an error to dispose the swapchain texture. If you do this your game WILL crash. DO NOT DO THIS. /// public Texture AcquireSwapchainTexture( Window window - ) - { + ) { var texturePtr = Refresh.Refresh_AcquireSwapchainTexture( Device.Handle, Handle,