Modify ScanLineStoreTexture to help save zbuffer value