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

Warning spam when using Camera.Render #13

Open
lordubbe opened this issue Aug 5, 2022 · 0 comments
Open

Warning spam when using Camera.Render #13

lordubbe opened this issue Aug 5, 2022 · 0 comments

Comments

@lordubbe
Copy link

lordubbe commented Aug 5, 2022

I experienced heavy warning spam when using Camera.Render in a separate, unrelated system: You can only call cameraColorTarget inside the scope of a ScriptableRenderPass. Otherwise the pipeline camera target texture might have not been created or might have already been disposed.

However, this is easily fixed by not accessing ScriptableRenderer.cameraColorTarget in ScriptableRenderPass.AddRenderPasses, and instead moving it to OnCameraSetup. I've added a Pull Request that implements this solution: #12

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