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

WebGPURenderer: Remove return on lines 258 and 626 #25258

Merged
merged 2 commits into from
Jan 7, 2023
Merged

Conversation

LeviPesin
Copy link
Contributor

@LeviPesin LeviPesin commented Jan 7, 2023

Related issue: -

Description

It is sometimes useful to initialize the renderer on the first render. This change makes WebGPURenderer initialize itself on a render if it was not initialized; as an alternative the error could be removed from line 181 and await renderer.init(); await renderer.render() be used in animation loop (this can be more clear because in such case it is clearer that renderer.init() can take some time).

@LeviPesin LeviPesin changed the title WebGPURenderer: Remove return on line 258 WebGPURenderer: Remove return on lines 258 and 626 Jan 7, 2023
@sunag sunag added this to the r149 milestone Jan 7, 2023
@sunag sunag merged commit 3468fb7 into mrdoob:dev Jan 7, 2023
@LeviPesin LeviPesin deleted the patch-2 branch January 7, 2023 17:36
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

Successfully merging this pull request may close these issues.

None yet

2 participants