[HTML5] Memory every frame

Setting __preserveObject = false made shader run as expected but now I’m struggling passing second texture to fragment shader which is the map for displacements (later on I want to pass more textures, up to 4 but for application-specific purposes only). You can see in the previous message how I set up sampler2d in fragment shader for map uniform sampler2D mapTexture and how I assign mapTexture to it __displacementMapShader.mapTexture.input = __mapBitmap;

I tried setting gl_FragColor directly from mapTexture sampler but it seems to have the openfl_Texture inside instead of my custom mapTexture.

EDIT: I’ve come across this topic Sampling second texture in GLSL shader and I checked - I’ve got it covered since I’m working on develop branch for both Lime and OpenFL. It still does not seem to work correctly.