From ec53bbe9fc8ceac1618955b55c65197c4481dc5e Mon Sep 17 00:00:00 2001 From: quou Date: Sun, 29 Dec 2024 14:56:54 +1100 Subject: fix build error on msvc --- pipeline.cpp | 4 ++-- 1 file 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); -- cgit v1.2.3-54-g00ecf