summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Sams <jsams@google.com>2013-02-05 16:07:10 -0800
committerJason Sams <jsams@google.com>2013-02-05 16:07:10 -0800
commitca92fdc25da99afdfe33447aefb2cd270c5b5e4d (patch)
tree42b29b678c049c9ab305ffa4bef61250037cfc44
parent9cc201742a70ab0879965d23d2c2b33ee6c18e70 (diff)
downloadandroid_packages_wallpapers_Galaxy4-ca92fdc25da99afdfe33447aefb2cd270c5b5e4d.tar.gz
android_packages_wallpapers_Galaxy4-ca92fdc25da99afdfe33447aefb2cd270c5b5e4d.tar.bz2
android_packages_wallpapers_Galaxy4-ca92fdc25da99afdfe33447aefb2cd270c5b5e4d.zip
Update for API 18
bug 7968563 New defaults for createFromBitmap Change-Id: I224e27cd01ba5502cb833221ac731384785108eb
-rw-r--r--src/com/android/galaxy4/GalaxyRS.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/galaxy4/GalaxyRS.java b/src/com/android/galaxy4/GalaxyRS.java
index 292c06f..f6136ae 100644
--- a/src/com/android/galaxy4/GalaxyRS.java
+++ b/src/com/android/galaxy4/GalaxyRS.java
@@ -106,7 +106,9 @@ public class GalaxyRS {
}
private Allocation loadTexture(int id) {
- final Allocation allocation = Allocation.createFromBitmapResource(mRS, mRes, id);
+ final Allocation allocation = Allocation.createFromBitmapResource(mRS, mRes, id,
+ Allocation.MipmapControl.MIPMAP_NONE,
+ Allocation.USAGE_GRAPHICS_TEXTURE);
return allocation;
}