retain method

void retain()

Increments the reference count of this texture. Call this if you are keeping an additional reference to the texture elsewhere to prevent premature disposal.

Implementation

void retain() {
  _refCount++;
}