This commit is contained in:
Jonatan Nilsson 2024-08-25 06:09:55 +00:00
parent 6cf91935a0
commit 1f63b77465
2 changed files with 3 additions and 3 deletions

View file

@ -5,6 +5,6 @@ use jxl_oxide::JxlImage;
fn main() -> Result<(), Box<dyn Error>> {
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())
}

View file

@ -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::<f32>()) 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 }
}