Skip to content

Commit

Permalink
Dynamically assemble graphics context
Browse files Browse the repository at this point in the history
  • Loading branch information
borodust committed Jul 12, 2020
1 parent c726a1b commit 6738b95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions graphics/context.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

(defmethod initialize-instance :after ((this graphics-context) &key system)
(with-slots (executor) this
(unless system
(error ":system missing"))
(flet ((%invoke (task)
(let ((*system* system)
(*graphics-context* this)
Expand Down
3 changes: 2 additions & 1 deletion graphics/system.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@


(defun graphics-context-assembly-flow ()
(>> (assembly-flow 'graphics-context :system (graphics))
(>> (->> ()
(assembly-flow 'graphics-context :system (graphics)))
(for-graphics (instance)
(register-shared-context instance))))

Expand Down

0 comments on commit 6738b95

Please sign in to comment.