Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Throw error when canvas background is used without sample buffer #31751
edit: I have updated this PR with a completely different approach. After spending some more time with it, I realized that the render_empty_scene call is needed to actually render the canvas background. So the real problem is that in order to use a canvas background, by nature you have to sample the main buffer. So using "2D - No Sampling" shouldn't be allowed. My new solution is to throw an error and to exit the render_scene function.
From @reduz's comment it's not clear whether it's the right solution though: