summaryrefslogtreecommitdiff
path: root/src/shader.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/shader.rs')
-rw-r--r--src/shader.rs4
1 files changed, 2 insertions, 2 deletions
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);