haxe3 fixes
texture, material fixes