Skip to content

Commit

Permalink
resetTexture method added for dropping texture id forcing allocation
Browse files Browse the repository at this point in the history
of new one.
  • Loading branch information
harism committed May 3, 2011
1 parent a8db98d commit 1d58291
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/fi/harism/curl/CurlMesh.java
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,14 @@ public synchronized void reset() {
mDropShadowCount = mSelfShadowCount = 0;
}

/**
* Resets allocated texture id forcing creation of new one. After calling
* this method you most likely want to set bitmap too as it's lost.
*/
public synchronized void resetTexture() {
mTextureIds = null;
}

/**
* Sets new texture for this mesh.
*/
Expand Down

0 comments on commit 1d58291

Please sign in to comment.