Skip to content

Commit

Permalink
Downgrade the buffer size assertion to a warning since AMD sucks so bad.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinmera committed Nov 27, 2024
1 parent 5544659 commit e20351e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/uniform-buffer.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
(gl-type buffer) program))
(T
(%gl:uniform-block-binding (gl-name program) index (binding-point buffer))
#-(or elide-buffer-access-checks trial-release)
#-elide-buffer-access-checks
(let ((size (gl:get-active-uniform-block (gl-name program) index :uniform-block-data-size)))
(assert (= size (size buffer))))))))
(v:warn :trial.resource "Driver bug? UBO size is ~d when ~d was expected" size (size buffer)))))))

0 comments on commit e20351e

Please sign in to comment.