aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/assets/png.lisp
diff options
context:
space:
mode:
authorcolin <colin@cicadas.surf>2024-12-14 08:36:23 -0800
committercolin <colin@cicadas.surf>2024-12-14 08:36:23 -0800
commit3a2217263d581be9a7f629b10d75aa8e3d581890 (patch)
tree23f5f0a5449a06473aba2ec7914a3c2193823a10 /src/assets/png.lisp
parent03cdbb6a15e130a012377ab8d54074b6864e3480 (diff)
parent8a51ba81c7df6b0b6dab7cf4b35b5ca084b653ba (diff)
Merge branch 'refactor-with-def'
Diffstat (limited to 'src/assets/png.lisp')
-rw-r--r--src/assets/png.lisp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/assets/png.lisp b/src/assets/png.lisp
index aa259f0..4408d02 100644
--- a/src/assets/png.lisp
+++ b/src/assets/png.lisp
@@ -2,7 +2,7 @@
(in-package #:wheelwork)
-(defclass/std png (asset texture) ())
+(def:class png (asset texture))
(defmethod ensure-loaded ((png png))
(with-slots
@@ -27,5 +27,6 @@
:unsigned-byte
(pngload:data data))
(gl:bind-texture :texture-2d 0)
+ ;; what does this do?
(when (texture-mipmap png)
(gl:generate-mipmap :texture-2d)))))