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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user