summaryrefslogtreecommitdiff
path: root/pipeline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pipeline.cpp')
-rw-r--r--pipeline.cpp6
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);
+ }
}
}