From 1f63b77465f5503a5fdbc783eb1597ac3ecfd81f Mon Sep 17 00:00:00 2001 From: Jonatan Nilsson Date: Sun, 25 Aug 2024 06:09:55 +0000 Subject: [PATCH] blabla --- src/main.rs | 2 +- src/mywin.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 } }