Line 64 of mglCreateTexture was messing me up trying to pass an rgba image in - if I comment it out, works fine.