From d4beacf27e6c2e71eceaa8c8e204bd9f22a31175 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 15 Jul 2022 03:45:52 +0900 Subject: [PATCH] Revert "internal/graphicsdriver/directx: unmap constant buffers appropriately" This reverts commit 085e6fe99442e23ba68aed3dda467da7c5896ea6. Reason: compile error --- internal/graphicsdriver/directx/pipeline_windows.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/internal/graphicsdriver/directx/pipeline_windows.go b/internal/graphicsdriver/directx/pipeline_windows.go index 611e1d190..fe110af33 100644 --- a/internal/graphicsdriver/directx/pipeline_windows.go +++ b/internal/graphicsdriver/directx/pipeline_windows.go @@ -674,16 +674,12 @@ func (p *pipelineStates) newPipelineState(device *iD3D12Device, vsh, psh *iD3DBl func (p *pipelineStates) releaseConstantBuffers(frameIndex int) { for i := range p.constantBuffers[frameIndex] { - p.constantBuffers[frameIndex][i].Unmap(0, nil) p.constantBuffers[frameIndex][i].Release() p.constantBuffers[frameIndex][i] = nil - p.constantBufferMaps[frameIndex][i] = 0 } p.constantBuffers[frameIndex] = p.constantBuffers[frameIndex][:0] - p.constantBufferMaps[frameIndex] = p.constantBufferMaps[frameIndex][:0] } func (p *pipelineStates) resetConstantBuffers(frameIndex int) { p.constantBuffers[frameIndex] = p.constantBuffers[frameIndex][:0] - p.constantBufferMaps[frameIndex] = p.constantBufferMaps[frameIndex][:0] }