From e73044fbd51f9c8f15eb6bd60248887ccd8b16f0 Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Tue, 18 Feb 2025 17:32:20 -0500 Subject: Don't error please --- src/shader.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/shader.rs') diff --git a/src/shader.rs b/src/shader.rs index d260881..178833a 100644 --- a/src/shader.rs +++ b/src/shader.rs @@ -49,10 +49,10 @@ impl Shader { ctx.gl.link_program(program); if !ctx.gl.get_program_link_status(program) { - panic!( + return Err(format!( "failed to link shader program:\n{}", ctx.gl.get_program_info_log(program), - ); + )); } ctx.gl.detach_shader(program, vert); -- cgit v1.2.3