doing resDesc.res.pitch2D.desc.y = 0 instead of 32 fixed the problem.