summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Sams <jsams@google.com>2013-02-05 15:49:04 -0800
committerJason Sams <jsams@google.com>2013-02-05 15:49:04 -0800
commitb02a5fb2e613245e2496ae8cab6a2cc360388274 (patch)
tree6d675a007972b24734ec595c37bc0eb9e3454826
parent63f02a87920733e326724684d93a86aeae0bf844 (diff)
downloadandroid_packages_wallpapers_HoloSpiral-b02a5fb2e613245e2496ae8cab6a2cc360388274.tar.gz
android_packages_wallpapers_HoloSpiral-b02a5fb2e613245e2496ae8cab6a2cc360388274.tar.bz2
android_packages_wallpapers_HoloSpiral-b02a5fb2e613245e2496ae8cab6a2cc360388274.zip
Update for API 18
bug 7968563 New defaults for createFromBitmap Change-Id: I915216f922e4fcffba3e38c7530caadb754e7b41
-rw-r--r--src/com/android/wallpaper/holospiral/HoloSpiralRS.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/wallpaper/holospiral/HoloSpiralRS.java b/src/com/android/wallpaper/holospiral/HoloSpiralRS.java
index 46df13d..dfcf683 100644
--- a/src/com/android/wallpaper/holospiral/HoloSpiralRS.java
+++ b/src/com/android/wallpaper/holospiral/HoloSpiralRS.java
@@ -181,7 +181,9 @@ public class HoloSpiralRS {
private void createTextures() {
Bitmap bmp = BitmapFactory.decodeResource(
mResources, R.drawable.points_red_green, null);
- Allocation pointTexture = Allocation.createFromBitmap(mRS, bmp);
+ Allocation pointTexture = Allocation.createFromBitmap(mRS, bmp,
+ Allocation.MipmapControl.MIPMAP_NONE,
+ Allocation.USAGE_GRAPHICS_TEXTURE);
mScript.set_gPointTexture(pointTexture);
}