diff options
author | quou <quou@disroot.org> | 2024-12-29 13:39:33 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-12-29 13:40:12 +1100 |
commit | c41a63370e54cc1e6e0c1b1dc20e219f3cac2845 (patch) | |
tree | 7a472534cd53c1cfb7f7160e4de6b5de68492224 /pipeline.cpp | |
parent | dfd95c6e29c25c3ad9acc3e63a790da866339015 (diff) |
fix depth only render passes
Diffstat (limited to 'pipeline.cpp')
-rw-r--r-- | pipeline.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pipeline.cpp b/pipeline.cpp index c31ef69..8867a8d 100644 --- a/pipeline.cpp +++ b/pipeline.cpp @@ -93,8 +93,10 @@ void Pipeline_Builder::validate_rp() { d.fmt == texture_format_d24s8 || d.fmt == texture_format_d32 ); - assert(d.w == w); - assert(d.h == h); + if (c) { + assert(d.w == w); + assert(d.h == h); + } } } |