I use this code to load a .png image:
local data, error = sys.load_resource("/custom_resources/star.png")
local img = image.load(data, true)
gui.new_texture( "star", img.width, img.height, img.type, img.buffer, false)
local node = gui.new_box_node(vmath.vector3(100,100,0), vmath.vector3(img.width,img.height,0))
gui.set_texture( node, "star" )
It worked in previous version of Defold, but in v1.2.170 I get this result:
Minimal project: LoadPng.zip (45.5 KB)
Am I missing a new setting somewhere?