Skip to content

Commit

Permalink
Fix #20
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinmera committed Apr 21, 2019
1 parent b5c84e5 commit a7b38d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shader-entity.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@
effective-buffers)) effective-buffers))


(defmethod compute-effective-shader-class ((class shader-entity-class)) (defmethod compute-effective-shader-class ((class shader-entity-class))
(if (direct-shaders class) (if (or (direct-shaders class)
;; break-out path for shader-entity.
(null (find-class 'shader-entity NIL)))
class class
(let* ((effective-superclasses (list (find-class 'shader-entity)))) (let* ((effective-superclasses (list (find-class 'shader-entity))))
;; Loop through superclasses and push new, effective superclasses. ;; Loop through superclasses and push new, effective superclasses.
Expand Down

0 comments on commit a7b38d9

Please sign in to comment.