Re: Shader Uniform Sampler2D Update in TextureUnitState not applied
Posted by
rndmbt on
Nov 24, 2023; 12:41pm
URL: https://forum.jogamp.org/Shader-Uniform-Sampler2D-Update-in-TextureUnitState-not-applied-tp4043151p4043157.html
Hello basti and thank you for the welcome and fast reply :)
I did some tests but I can't seem to get the texture images to update once the pool reuses the Texture2D Objects starting from index 0. Clearing the pool after one run-through and filling it again also does not trigger garbage collection or prevent the memory leak. So with your approach i get the first 50 textures repeating forever like a small video recording and it does not have a memory leak. But this does not solve my problem as i need to constantly update custom masks - (imagine rendering your own depth or stencil mask in the first pass and i want to use the 4 RGBA channels to have a maximum of 4 masks prepared in the first pass. )
Also thanks for taking the time to send that code