diff options
author | HampusM <hampus@hampusmat.com> | 2024-03-03 22:33:53 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-03-03 22:33:53 +0100 |
commit | e246f90bc33fd489e300366e30354e34a05b8107 (patch) | |
tree | eff886808f3feff276ca9ca410572b8a8907ccd9 /engine/src/lib.rs | |
parent | 6f8aeb236725f673f199bce7a6f3942eb56a8318 (diff) |
feat(engine): create shader programs when needed
Diffstat (limited to 'engine/src/lib.rs')
-rw-r--r-- | engine/src/lib.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/engine/src/lib.rs b/engine/src/lib.rs index e39f1c6..332a011 100644 --- a/engine/src/lib.rs +++ b/engine/src/lib.rs @@ -141,10 +141,6 @@ where /// Will return `Err` if updating the window fails. pub fn start(&mut self, mut func: impl FnMut(&mut Self)) -> Result<(), Error> { - self.renderer - .create_shader_programs(self.objects.values().map(Object::shader)) - .map_err(Error::ShaderCreationFailed)?; - let mut prev_frame_start: Option<Instant> = None; while !self.window.should_close() { @@ -293,9 +289,6 @@ pub enum Error #[error("Rendering failed")] RenderingFailed(#[source] renderer::Error), - - #[error("Failed to create shaders")] - ShaderCreationFailed(#[source] renderer::Error), } #[derive(Debug)] |