Fix rendering at wrong position in GPU mode.