diff options
Diffstat (limited to 'engine/src/object.rs')
-rw-r--r-- | engine/src/object.rs | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/engine/src/object.rs b/engine/src/object.rs index 6b4bf4e..a650abc 100644 --- a/engine/src/object.rs +++ b/engine/src/object.rs @@ -1,5 +1,10 @@ +use crate::opengl::shader::{ + Error as ShaderError, + Kind as ShaderKind, + Program as ShaderProgram, + Shader, +}; use crate::renderer::Renderable; -use crate::shader::{Kind as ShaderKind, Program as ShaderProgram, Shader}; use crate::vertex::Vertex; #[derive(Debug)] @@ -61,11 +66,11 @@ impl Object pub enum Error { #[error("Failed to create vertex shader")] - CreateVertexShaderFailed(#[source] crate::shader::Error), + CreateVertexShaderFailed(#[source] ShaderError), #[error("Failed to create fragment shader")] - CreateFragmentShaderFailed(#[source] crate::shader::Error), + CreateFragmentShaderFailed(#[source] ShaderError), #[error("Failed to link shader program")] - LinkShaderProgramFailed(#[source] crate::shader::Error), + LinkShaderProgramFailed(#[source] ShaderError), } |