obj=teapot();
mat=CoronaMtl()
mat.texmapDiffuse = CoronaBitmap()
mat.texmapDiffuse.filename = "test.jpg"
obj.material = mat
Adjust test.jpg to some existing texture file, run it and sample the material from the teapot into the material editor.
Notice the CoronaBitmap shows a "Could not load texture file: test.jpg Reason: Unsupported image format." message.
Then pressing "load map" -> "ok" does load it correctly.
[Corona version: 1.3
Full-speed, Non-debug, MaxSDK 2016
Build timestamp: Nov 3 2015 13:07:13
Defines: Wide RGB ]