Skip to content

Commit

Permalink
Whoops.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinmera committed Aug 19, 2024
1 parent 8bb4ab2 commit c0fb2d2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions backends/nxgl/context.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
(robustness NIL robustness-p)
(forward-compat NIL forward-compat-p)
(debug-context NIL debug-context-p)
double-buffering stereo-buffer title)
(declare (ignore double-buffering stereo-buffer title))
double-buffering stereo-buffer title visible)
(declare (ignore double-buffering stereo-buffer title visible))
(flet (((setf g) (value name) (setf (getf (initargs context) name) value)))
(macrolet ((maybe-set (var &optional (name (intern (string var) :keyword)))
`(when ,(let ((*print-case* (readtable-case *readtable*)))
Expand Down Expand Up @@ -183,6 +183,9 @@
(setf %gl:*gl-get-proc-address* #'nxgl:proc-address)
(%gl::reset-gl-pointers))

(deploy:define-hook (:quit nxgl) ()
(nxgl:shutdown))

(defun trial:launch-with-context (&optional main &rest initargs)
(let ((main (apply #'make-instance main initargs)))
(start main)
Expand All @@ -196,8 +199,7 @@
(nxgl:poll (pointer context))
(sleep 0.0001)))
(v:debug :trial.backend.nxgl "Cleaning up")
(unwind-protect (finalize main)
(nxgl:shutdown)))))
(finalize main))))

(defun trial:make-context (&optional handler &rest initargs)
(apply #'make-instance 'context :handler handler initargs))
Expand Down
2 changes: 1 addition & 1 deletion toolkit.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

(defun self ()
#-nx (first (uiop:raw-command-line-arguments))
#+nx "rom:/sbcl")
#+nx (make-pathname :device "rom" :name "sbcl" :directory '(:absolute)))

(defun checksum (file)
(with-output-to-string (out)
Expand Down

0 comments on commit c0fb2d2

Please sign in to comment.