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

Moved zero render target checked to a better place #7354

Merged
merged 1 commit into from
Feb 24, 2025
Merged

Conversation

mvaligursky
Copy link
Contributor

@mvaligursky mvaligursky commented Feb 14, 2025

this is to handle single samplered RTs as well, not only multisampled

Related to #7351

repro using engine example
Screenshot 2025-02-14 at 16 03 46

note that this is not related to CameraFrame only, but any render target rendering, even old post-effects.

@@ -150,6 +150,12 @@ class WebglRenderTarget {

} else {

Debug.call(() => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will just warn though. It won't resize the render targets back right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

true.
this will cause webgl errors as well.
as discussed in the previous duplicate issue, the engine does not support this way of hiding the application, and it should not be used.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it does work without the post though. If you do the same thing without the camera frame it will work correctly

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes because normally we do not render to any render target
with camera frame or old post effects we render to render target, and currently we do not support when those are 0 size

@mvaligursky mvaligursky requested review from a team and marklundin February 22, 2025 17:44
@mvaligursky mvaligursky merged commit 812c275 into main Feb 24, 2025
6 of 7 checks passed
@mvaligursky mvaligursky deleted the mv-zero-size-rt branch February 24, 2025 08:49
mvaligursky added a commit that referenced this pull request Feb 24, 2025
mvaligursky added a commit that referenced this pull request Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: graphics Graphics related issue bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants