summaryrefslogtreecommitdiff
path: root/crates/throwshade/src
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2025-03-14 22:14:38 -0400
committerLLLL Colonq <llll@colonq>2025-03-14 22:14:38 -0400
commit66a4f9ea42217367d61293e2f62c746aed984b05 (patch)
treed6e2433b9155aec8c0639dee552aaf7de578ef88 /crates/throwshade/src
parent6ca8afe419b3eb28d68e24c61b5f25cf8ff0e740 (diff)
Update
Diffstat (limited to 'crates/throwshade/src')
-rw-r--r--crates/throwshade/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/throwshade/src/lib.rs b/crates/throwshade/src/lib.rs
index b408993..7fffa37 100644
--- a/crates/throwshade/src/lib.rs
+++ b/crates/throwshade/src/lib.rs
@@ -49,7 +49,7 @@ cfg_if::cfg_if! {
}
}
impl state::Game for Game {
- fn render(&mut self, ctx: &context::Context, st: &mut state::State) -> Option<()> {
+ fn render(&mut self, ctx: &context::Context, st: &mut state::State) -> Erm<()> {
if let Some(s) = &self.throwshade.shader {
ctx.clear_color(glam::Vec4::new(0.0, 0.0, 0.0, 0.0));
ctx.clear();
@@ -60,7 +60,7 @@ cfg_if::cfg_if! {
s.set_f32(ctx, "time", elapsed);
ctx.render_no_geometry();
}
- Some(())
+ Ok(())
}
}