public void Dispose() { BackgroundContext.Dispose(); if (_copyFramebufferHandle != 0) { GL.DeleteFramebuffer(_copyFramebufferHandle); _copyFramebufferHandle = 0; } }
public void Dispose() { BackgroundContext.Dispose(); if (_copyFramebufferHandle != 0) { GL.DeleteFramebuffer(_copyFramebufferHandle); _copyFramebufferHandle = 0; } if (_stagingFrameBuffer != 0) { GL.DeleteTextures(_stagingTextures.Length, _stagingTextures); GL.DeleteFramebuffer(_stagingFrameBuffer); _stagingFrameBuffer = 0; _stagingTextures = null; } }