cvref: retain reference before releasing old

if we re-add same surface to renderer we could end up freeing texture
before retaining reference.
cvref: skip upload of texture by looking at flipindex

The texture can be in use for a while after this call.