diff options
author | quou <quou@disroot.org> | 2024-12-29 14:56:54 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-12-29 14:56:54 +1100 |
commit | ec53bbe9fc8ceac1618955b55c65197c4481dc5e (patch) | |
tree | a757990c1218eb27ab90ea9a70ba8a3d64c29f96 /pipeline.cpp | |
parent | fd1811ee45177420b26ddb9a98607bcd7d9c104c (diff) |
fix build error on msvc
Diffstat (limited to 'pipeline.cpp')
-rw-r--r-- | pipeline.cpp | 4 |
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); |