Support defered generation of mipmaps. With this change we support mipmap generation when the texture is uploaded to GL without requiring RS to retain the full chain.

This commit is contained in:
Jason Sams
2010-02-23 17:44:28 -08:00
parent 7eecbf2085
commit c2908e60c9
7 changed files with 24 additions and 11 deletions

View File

@@ -45,7 +45,12 @@ public class Allocation extends BaseObj {
public void uploadToTexture(int baseMipLevel) {
mRS.validate();
mRS.nAllocationUploadToTexture(mID, baseMipLevel);
mRS.nAllocationUploadToTexture(mID, false, baseMipLevel);
}
public void uploadToTexture(boolean genMips, int baseMipLevel) {
mRS.validate();
mRS.nAllocationUploadToTexture(mID, genMips, baseMipLevel);
}
public void uploadToBufferObject() {