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

Stalker texture type fix #4704

Merged
merged 2 commits into from
Feb 21, 2025
Merged

Conversation

K0bin
Copy link
Collaborator

@K0bin K0bin commented Feb 21, 2025

Fixes #4703

The actual bug was an off-by-one bug but I also made it exclude the displacement map sampler in general.
We don't actually implement the displacement feature and I hope no game actually uses it but better safe than sorry.

The second commit tries to slightly clean up the sampler slot mess and make it more clear which functions take in a sampler slot counted the way the API does it and which one takes in a sampler slot counted the way we do it.
Hopefully that will make bugs like this one a bit less likely (but probably wont).

@K0bin K0bin added the d3d9 label Feb 21, 2025
@doitsujin doitsujin merged commit 94b48c1 into doitsujin:master Feb 21, 2025
4 checks passed
@K0bin K0bin deleted the stalker-texture-type-fix branch February 21, 2025 12:25
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.

[d3d9] Regression in Stalker: Call of Pripyat - Missing Textures
2 participants