fix PolyK and non-initialized sprite textures