Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thread panic on get_current_texture in ubuntu #13

Open
trevordblack opened this issue Jul 13, 2024 · 0 comments
Open

thread panic on get_current_texture in ubuntu #13

trevordblack opened this issue Jul 13, 2024 · 0 comments

Comments

@trevordblack
Copy link
Collaborator

A thread panic is through for Timeout on get_current_texture at the end of chapter 2.

                WindowEvent::RedrawRequested => {
                    // Wait for the next available frame buffer.
                    //let frame: wgpu::SurfaceTexture = surface
                    //    .get_current_texture()
                    //    .expect("failed to get current texture");

                    // TODO: draw frame

                    //frame.present();
                    window.request_redraw();
                }

This thread panic does not exist for the completed code at the end of the book.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant