Skip to content

thread panic on get_current_texture in ubuntu #13

Description

@trevordblack

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions