summaryrefslogtreecommitdiff
path: root/debugdraw.cpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2025-02-08 21:55:41 +1100
committerquou <quou@disroot.org>2025-02-08 21:55:41 +1100
commit614ce6a5662ff1ec2968b0c4f05a276d9f3c8096 (patch)
tree2d6028e597857d1544ca07e462e1764b4515ebe8 /debugdraw.cpp
parenta4239189f7c5986b0412b1faa8b3bba8f13488ac (diff)
assert that debugdraw.csh loaded
Diffstat (limited to 'debugdraw.cpp')
-rw-r--r--debugdraw.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/debugdraw.cpp b/debugdraw.cpp
index 6eaa3e6..3a21946 100644
--- a/debugdraw.cpp
+++ b/debugdraw.cpp
@@ -20,6 +20,7 @@ void Line_Renderer::init(Device* dev, Asset_Arena* assets) {
Buffer_Flags::constant_buffer
);
shader = (Shader*)assets->load("debug.csh");
+ assert(shader != 0);
vert_binding = shader->binding_index("verts");
cbuffer_binding = shader->descriptor_binding("cbuf");
assert(vert_binding >= 0);