Bug with setContext when using meshes?

For me this shows the boy first and when mesh2 is created it shows the chest. It’s a bug right?


function draw()
    background(0, 0, 0, 255)
    
    if not created then
        print("creating")
        created = true 
        mesh1 = mesh()
        mesh1.texture = "Planet Cute:Character Boy"
        mesh1:addRect(50,85,101,171)
        img = image(101,171)
        setContext(img)
        mesh1:draw()
        setContext()
    end
    
    if ElapsedTime > .5 and not recreated then
        print("recreating")
        recreated = true
        mesh2 = mesh()
        mesh2.texture = "Planet Cute:Chest Lid"
    end

    spriteMode(CORNER)
    sprite(img,300,300,101,171)
end

Yeah I think so. I’ll have to look at what the code is doing to figure it out.