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

[d3d9] Only set initial NeedsUpload for D3DPOOL_MANAGED textures #3664

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

K0bin
Copy link
Collaborator

@K0bin K0bin commented Sep 18, 2023

IMO this is the better fix for #3662.

Right now, binding a system mem / scratch texture will make us call FlushImage for that texture which crashes because there is no image. On top of that, we may end up uploading recently created D3DPOOL_DEFAULT textures which means we basically clear it again.

@K0bin K0bin added the d3d9 label Sep 18, 2023
@K0bin K0bin changed the title [d3d9] Only do late-upload for managed textures [d3d9] Only set initial NeedsUpload for D3DPOOL_MANAGED textures Sep 19, 2023
@misyltoad
Copy link
Collaborator

Do we need to do this for SYSTEMMEM what is the behaviour there?

@misyltoad misyltoad merged commit 494f7fd into doitsujin:master Sep 19, 2023
3 checks passed
@K0bin K0bin deleted the bind-scratch-fix branch March 15, 2024 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
  翻译: