Replacing image of dynamic texture doesn't work

Given is a box with a dynamic texture consisting of a loaded image (grass.png).

When clicking on the box, the DynamicTexture already used should be used to save resources and another image (amiga.png) should be drawn.

The background is, I’m working on a slide for a SingleChoice, where the other RadioButtons should be reset as soon as a new selection is made.

However, the area is not completely filled after the mouse click. Why?

I have extracted the main problem from my source code: https://www.babylonjs-playground.com/#PA4866#1

I’d be very happy for a clue.

Something like that?
https://www.babylonjs-playground.com/#PA4866#2

1 Like

This is what I was looking for:
https://www.babylonjs-playground.com/#PA4866#3

No strechings, pix centered.