Skip to content

Commit

Permalink
Fix resolution changing in texspecs when updating pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinmera committed Sep 8, 2024
1 parent df50938 commit 1c93d92
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pipeline.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@
(allocated-p (framebuffer (flow:node port)))
(not (allocated-p texture)))
(allocate texture))
(setf (texture port) texture)
(setf (slot-value port 'texture) texture)
(vector-push-extend texture textures)
(vector-push-extend texspec texspecs))))
;; Compute frame buffers
Expand All @@ -276,6 +276,8 @@
(dolist (attachment (attachments fbo))
(unless (allocated-p (second attachment))
(allocate (second attachment))))
(setf (width (framebuffer pass)) NIL)
(setf (height (framebuffer pass)) NIL)
(setf (attachments (framebuffer pass)) (attachments fbo))))))
;; Now re-set the activation to short-modify the pipeline as necessary.
(dolist (pass passes)
Expand Down

0 comments on commit 1c93d92

Please sign in to comment.