mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-05 15:34:28 +01:00
Revert "internal/graphicsdriver/directx: unmap constant buffers appropriately"
This reverts commit 085e6fe994
.
Reason: compile error
This commit is contained in:
parent
085e6fe994
commit
d4beacf27e
@ -674,16 +674,12 @@ func (p *pipelineStates) newPipelineState(device *iD3D12Device, vsh, psh *iD3DBl
|
|||||||
|
|
||||||
func (p *pipelineStates) releaseConstantBuffers(frameIndex int) {
|
func (p *pipelineStates) releaseConstantBuffers(frameIndex int) {
|
||||||
for i := range p.constantBuffers[frameIndex] {
|
for i := range p.constantBuffers[frameIndex] {
|
||||||
p.constantBuffers[frameIndex][i].Unmap(0, nil)
|
|
||||||
p.constantBuffers[frameIndex][i].Release()
|
p.constantBuffers[frameIndex][i].Release()
|
||||||
p.constantBuffers[frameIndex][i] = nil
|
p.constantBuffers[frameIndex][i] = nil
|
||||||
p.constantBufferMaps[frameIndex][i] = 0
|
|
||||||
}
|
}
|
||||||
p.constantBuffers[frameIndex] = p.constantBuffers[frameIndex][:0]
|
p.constantBuffers[frameIndex] = p.constantBuffers[frameIndex][:0]
|
||||||
p.constantBufferMaps[frameIndex] = p.constantBufferMaps[frameIndex][:0]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *pipelineStates) resetConstantBuffers(frameIndex int) {
|
func (p *pipelineStates) resetConstantBuffers(frameIndex int) {
|
||||||
p.constantBuffers[frameIndex] = p.constantBuffers[frameIndex][:0]
|
p.constantBuffers[frameIndex] = p.constantBuffers[frameIndex][:0]
|
||||||
p.constantBufferMaps[frameIndex] = p.constantBufferMaps[frameIndex][:0]
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user