Skip to content

Commit

Permalink
Fix shader subjects not triggering instance obsoletion on effective s…
Browse files Browse the repository at this point in the history
…hader change.
  • Loading branch information
Shinmera committed Oct 29, 2017
1 parent 99e3824 commit 83570f9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions shader-subject.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
(defclass shader-subject-class (subject-class shader-entity-class)
())

(defmethod (setf effective-shaders) :after (shaders (class shader-subject-class))
;; Mark as obsolete
(setf (class-redefinition-event-sent class) NIL)
(make-instances-obsolete class))

(defclass shader-subject (subject shader-entity)
()
(:metaclass shader-subject-class))
Expand Down

0 comments on commit 83570f9

Please sign in to comment.