Gui.new_texture vs resource.set_texture?

I have 2 runtime textures. One in gui, one in game object. When I build html, GUI texture is black, if it not power of two(pot) But resource texture work OK, if it not pot.
So what difference between gui texture and resource texture?

I don’t think the gui.new_texture needs to be a power of two? Do you get any error message? What does your code look like?

The functions do differ in that one takes a string, whereas the other takes a buffer.

The error. Looks like i need change material.

Error: WebGL warning: drawArrays: Active texture 0 for target 0x0de1 is 'incomplete', and will be rendered as RGBA(0,0,0,1), as per the GLES 2.0.24 $3.8.2: Non-power-of-two textures must have a wrap mode of CLAMP_TO_EDGE.
2 Likes