summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pipeline.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/pipeline.cpp b/pipeline.cpp
index 8750db0..015a5dd 100644
--- a/pipeline.cpp
+++ b/pipeline.cpp
@@ -72,7 +72,7 @@ void Pipeline_Builder::validate_rp() {
assert(c || pass->depth.id);
if (c) {
Texture& tex = dev->get_texture(pass->colours[0].id);
- assert(pass->colours[0].id != 0);
+ assert(pass->colours[0].id);
assert(pass->colours[0].fmt == tex.fmt);
w = tex.w;
h = tex.h;
@@ -80,7 +80,7 @@ void Pipeline_Builder::validate_rp() {
}
for (i = 1; i < c; i++) {
Texture& tex = dev->get_texture(pass->colours[i].id);
- assert(pass->colours[i].id != 0);
+ assert(pass->colours[i].id);
assert(pass->colours[i].fmt == tex.fmt);
assert(tex.w == w);
assert(tex.h == h);