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

GlobalSetter's that bind textures can have their textures overwritten by LocalSetter's #7318

Open
tylerhasman opened this issue Jan 12, 2024 · 0 comments

Comments

@tylerhasman
Copy link

Please ensure you have given all the following requested information in your report.

Issue details

If a GlobalSetter registers a texture to be bound by the textureBinder, it's texture slot can be overwritten by a LocalSetter.
Since it seems like GlobalSetter's only run a single time, their texture slot can be overwritten by a LocalSetter.

Example image where the global shadow maps have been overwritten by another texture on some terrain chunks:
image

Reproduction steps/code

Create a custom shader where many different textures are bound. Have one of the setter's be a GlobalSetter and the rest LocalSetter.
The GlobalSetter's texture slot may be overwritten by one of the LocalSetter's at some point.

Version of libGDX and/or relevant dependencies

1.12.0

Please select the affected platforms

Found on Windows but I assume this is a problem on all platforms.

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

No branches or pull requests

1 participant