no, i never ever mention a 1x1 pixel texture, not sure how im getting it. Basically at line 135 i log foo.bar.image.data as Uint8 and then on the next i log foo.bar.image as {data:null}
In the previous screenshots, 135 logs a data array, size 1024, line 136 logs (the same?) object as null and 1
The width and height of the datatexture shows 1. which is why I assumed you were creating a 1 pixel datatexture.
The way I’d debug these things is by putting a breakpoint on the line where you create the datatexture… and stepping into the constructor… inspecting (mouseovering) all the arguments to verify they contain what you expect…
When something looks impossible, it’s probably some other complexity biting you.
Otherwise… can you post a small reproduction of the issue in glitch?
Here’s a template you can remix and dump your stuff into: Glitch :・゚✧