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

Avoid unnecessary texture duplication on import - fixed #713 #731

Conversation

pfcDorn
Copy link
Contributor

@pfcDorn pfcDorn commented Apr 9, 2024

Before: Imported textures had the possibility that they are created twice in memory, because the loaded image was using the default sample settings, not the settings from the first texture that referenced to the same image. So the "matchSamplerState" can't be true here, even when the image was using by only one texture.
After: Now it will use the texture sample setting of the first texture and set it to the loaded image.

Sample.zip

@hybridherbst hybridherbst merged commit 3547c64 into KhronosGroup:dev Apr 14, 2024
1 check passed
@hybridherbst hybridherbst deleted the fix/unnecessary-texture-duplication branch April 14, 2024 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants