From c41a63370e54cc1e6e0c1b1dc20e219f3cac2845 Mon Sep 17 00:00:00 2001 From: quou Date: Sun, 29 Dec 2024 13:39:33 +1100 Subject: fix depth only render passes --- pipeline.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pipeline.cpp') 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); + } } } -- cgit v1.2.3-54-g00ecf