Permalink
Browse files

Fix controller crashes during context-less displays

  • Loading branch information...
Shinmera committed Aug 20, 2018
1 parent 0aee42d commit 4f0b99fdfea2cd477d48494d2ba795fcd55fba2c
Showing with 2 additions and 1 deletion.
  1. +2 −1 controller.lisp
View
@@ -47,7 +47,8 @@
(setf (show-overlay controller) (not (show-overlay controller))))
(define-handler (controller tick) (ev tt)
(when (show-overlay controller)
(when (and (show-overlay controller)
*context*)
(multiple-value-bind (gfree gtotal) (gpu-room)
(multiple-value-bind (cfree ctotal) (cpu-room)
(with-slots (fps-buffer text) controller

0 comments on commit 4f0b99f

Please sign in to comment.