aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2024-12-30 12:00:59 -0800
committer3gg <3gg@shellblade.net>2024-12-30 12:00:59 -0800
commit9d4964f8fb607e8e6274a670c83130fc569729a6 (patch)
treed9feb9da58395ce89b67c273b9fca9e7f6eff958
parent92e7a93d8c1475bdc802d10a1722bcf8a295449d (diff)
Cleanup.
-rw-r--r--Spear/Render/Core/Buffer.hs1
1 files changed, 0 insertions, 1 deletions
diff --git a/Spear/Render/Core/Buffer.hs b/Spear/Render/Core/Buffer.hs
index a4e98a4..db3437e 100644
--- a/Spear/Render/Core/Buffer.hs
+++ b/Spear/Render/Core/Buffer.hs
@@ -63,7 +63,6 @@ makeBuffer (BufferDesc usage bufferData) = do
63 63
64deleteBuffer :: Buffer -> Game RenderCoreState () 64deleteBuffer :: Buffer -> Game RenderCoreState ()
65deleteBuffer buffer = do 65deleteBuffer buffer = do
66 let matches buffer = (==bufferHandle buffer) . bufferHandle
67 modifyGameState (\state -> state { 66 modifyGameState (\state -> state {
68 buffers = HashMap.delete (bufferHandle buffer) (buffers state) }) 67 buffers = HashMap.delete (bufferHandle buffer) (buffers state) })
69 release buffer 68 release buffer