aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/interactive/bitmap.lisp
diff options
context:
space:
mode:
authorColin Okay <colin@cicadas.surf>2022-07-09 17:34:40 -0500
committerColin Okay <colin@cicadas.surf>2022-07-09 17:34:40 -0500
commit81963adda8dd9120d9e602264a7906ae0c374ebb (patch)
treea3d30dfaae2cf9ef7bc5d35b2951dd7a7f0f7d0e /src/interactive/bitmap.lisp
parent7acea135015024506687fb63bfe4681dfe91ee5b (diff)
[bugfix] still need bitmap cleanup method.
Diffstat (limited to 'src/interactive/bitmap.lisp')
-rw-r--r--src/interactive/bitmap.lisp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/interactive/bitmap.lisp b/src/interactive/bitmap.lisp
index 3d38503..06f081e 100644
--- a/src/interactive/bitmap.lisp
+++ b/src/interactive/bitmap.lisp
@@ -69,6 +69,9 @@ count and destroys shader-program if necessary."
(gl:bind-buffer :array-buffer 0)
(gl:bind-vertex-array 0))))
+(defmethod cleanup ((bitmap bitmap))
+ (bitmap-finalizer))
+
(defmethod render ((bitmap bitmap))
(with-slots (texture) bitmap
(gl:active-texture 0)