godotengine / godotengine/godot
Disable Proximity Fade in Compatibility will trigger "Condition "!texture_allocs_cache.has(p_id)" is true"
- Dominant language
- C++
- Stars
- 117k
- Forks
- 26.8k
- PR merge metrics
- PR metrics pending
Description
### Tested versions
Godot v4.3.dev (5d08c2631)
### System information
Windows 10.0.19045 - GLES3 (Compatibility) - NVIDIA GeForce RTX 3060 (NVIDIA; 31.0.15.3619) - 11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz (16 Threads)
### Issue description
When enable Proximity Fade in Compatibility nothing will happen due to https://github.com/godotengine/godot/issues/89942, but disable it will trigger a error says "godot\drivers\gles3\storage/utilities.h:144 - Condition "!texture_allocs_cache.has(p_id)" is true."

It doesn't happen in vulkan.
### Steps to reproduce
* Use Compatibility renderer.
* Add a cube on a plane.
* Apply a new standardMaterial3D to cube and enable Proximity Fade
* Disable it and observe
### Minimal reproduction project (MRP)
Open the DistanceFade.tscn and see the steps above.
[ProximityFade.zip](https://github.com/godotengine/godot/files/14784093/ProximityFade.zip)
Contributor guide
Assessment
This issue has not been assessed yet.