Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinmera committed Jun 13, 2023
1 parent cc6c8a0 commit 049d8f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resources/framebuffer.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@
(defmethod activate ((framebuffer framebuffer))
(gl:bind-framebuffer :framebuffer (gl-name framebuffer))
(gl:viewport 0 0 (width framebuffer) (height framebuffer))
(%gl:clear (clear-bits framebuffer)))
(let ((bits (slot-value framebuffer 'clear-bits)))
(when (< 0 bits) (%gl:clear bits))))

;; FIXME: this should ideally be more generic, with blitting from one to another framebuffer
;; and handling the screen as a special framebuffer instance that's always around.
Expand Down

0 comments on commit 049d8f6

Please sign in to comment.