Textures: drop the clear value on a texture that is neither render target nor depth #5060

Open
101Leafy wants to merge 1 commit from upstream-pr/5060 into main
101Leafy commented 2026-12-01 18:44:45 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 101Leafy on 2026-12-01T18:44:45Z.


The console allows a clear value on any texture. The host allows one only on render targets and depth buffers and refuses creation otherwise (E_INVALIDARG), so the title got no host texture at all. The clear value is now dropped on the other textures.

cargo check -p victory-gpu is clean.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5592207206 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/5060). Originally posted by [101Leafy](https://github.com/101Leafy) on 2026-12-01T18:44:45Z. --- The console allows a clear value on any texture. The host allows one only on render targets and depth buffers and refuses creation otherwise (`E_INVALIDARG`), so the title got no host texture at all. The clear value is now dropped on the other textures. `cargo check -p victory-gpu` is clean.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/5060:upstream-pr/5060'
git switch 'upstream-pr/5060'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/5060'
git switch 'upstream-pr/5060'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/5060'
git switch 'upstream-pr/5060'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/5060'
git switch 'main'
git merge --squash 'upstream-pr/5060'
git switch 'main'
git merge --ff-only 'upstream-pr/5060'
git switch 'main'
git merge 'upstream-pr/5060'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA!5060
No description provided.