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

RenderingDevice: Reject creation of textures with no usage #92587

Merged
merged 1 commit into from
May 31, 2024

Conversation

RandomShaper
Copy link
Member

Rendering drivers assume at least one bit is set. Otherwise, there's a risk of hitting ill paths in the GPU driver. And, in any case, there's no point in creating a texture that won't be used at all.

@RandomShaper RandomShaper added bug topic:rendering cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release labels May 31, 2024
@RandomShaper RandomShaper added this to the 4.3 milestone May 31, 2024
@RandomShaper RandomShaper requested a review from a team as a code owner May 31, 2024 10:02
@akien-mga akien-mga merged commit 705b7a0 into godotengine:master May 31, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@RandomShaper RandomShaper deleted the validate_tex_usage branch May 31, 2024 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release topic:rendering
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants