Skip to content
Browse files

Fix overriding requested fbo sizes

  • Loading branch information...
Shinmera committed Oct 20, 2019
1 parent a707d20 commit a58159a79db12bd0bb0fe60202f4966b22485724
Showing with 5 additions and 2 deletions.
  1. +5 −2 pipeline.lisp
@@ -61,8 +61,11 @@
do (multiple-value-bind (width height) (texspec-real-size texspec width height)
(resize texture width height)))
(loop for pass across (passes pipeline)
do (setf (width (framebuffer pass)) width)
(setf (height (framebuffer pass)) height)))
for binding = (first (attachments (framebuffer pass)))
when binding ;; We have to do it like this to prevent updating FBOs with
;; texspecs that are not window-size.
do (setf (width (framebuffer pass)) (width (second binding)))
(setf (height (framebuffer pass)) (height (second binding)))))

(defmethod normalized-texspec ((texspec list))
(assert (= 0 (getf texspec :level 0)))

0 comments on commit a58159a

Please sign in to comment.
You can’t perform that action at this time.