diff --git a/src/main.rs b/src/main.rs index b365dd0..610f504 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,6 +5,6 @@ use jxl_oxide::JxlImage; fn main() -> Result<(), Box> { let image = JxlImage::builder().open("combined.jxl").expect("Failed to read image header"); - println!("{:?}", image.image_header()); // Prints the image header + println!("{:#?}", image.image_header()); // Prints the image header mywin::main(EventLoop::new().unwrap()) } diff --git a/src/mywin.rs b/src/mywin.rs index f36e311..33153a7 100644 --- a/src/mywin.rs +++ b/src/mywin.rs @@ -297,7 +297,7 @@ impl Renderer { gl::STATIC_DRAW, ); - let pos_attrib = gl.GetAttribLocation(program, b"position\0".as_ptr() as *const _); + /*let pos_attrib = gl.GetAttribLocation(program, b"position\0".as_ptr() as *const _); let color_attrib = gl.GetAttribLocation(program, b"color\0".as_ptr() as *const _); gl.VertexAttribPointer( pos_attrib as gl::types::GLuint, @@ -316,7 +316,7 @@ impl Renderer { (2 * std::mem::size_of::()) as *const () as *const _, ); gl.EnableVertexAttribArray(pos_attrib as gl::types::GLuint); - gl.EnableVertexAttribArray(color_attrib as gl::types::GLuint); + gl.EnableVertexAttribArray(color_attrib as gl::types::GLuint);*/ Self { program, vao, vbo, gl } }