Re: Shader Uniform Sampler2D Update in TextureUnitState not applied
Posted by
basti on
Nov 25, 2023; 11:16am
URL: https://forum.jogamp.org/Shader-Uniform-Sampler2D-Update-in-TextureUnitState-not-applied-tp4043151p4043160.html
philjord,
thanks, but i guess i have been too fast, not realizing the complexity here ;)
But just for the sake of clarity, what i'm seeing in both cases:
1. constructing new Texture2D each time
tex = new Texture2D(Texture.BASE_LEVEL, Texture.RGBA, width, height); and 2. reusing existing one
getTexture2DFromPool();is the same colorful sphere:
out256.gifonly the 2nd attempt doesn't produce a memory leak.
@rndmbt and philjord
Should i see something different?
Maybe there's something wrong on my end?
basti