summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2010-12-14 19:09:57 -0800
committerJason Sams <rjsams@android.com>2010-12-14 19:10:23 -0800
commit3991d3acf66152d8077a2b9d24773edac68f8df3 (patch)
treeb0e5af9d16ef7b23f5e763c9c3aeda6905a591fa /src
parent213cc60e83d3d34e09b5907d8ded0a15892993f1 (diff)
downloadandroid_packages_wallpapers_HoloSpiral-3991d3acf66152d8077a2b9d24773edac68f8df3.tar.gz
android_packages_wallpapers_HoloSpiral-3991d3acf66152d8077a2b9d24773edac68f8df3.tar.bz2
android_packages_wallpapers_HoloSpiral-3991d3acf66152d8077a2b9d24773edac68f8df3.zip
Update for Allocation API changes.
Change-Id: I46cfb89801e6e4b206ac3af8ef664a022262fbf2
Diffstat (limited to 'src')
-rw-r--r--src/com/android/wallpaper/holospiral/HoloSpiralRS.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/android/wallpaper/holospiral/HoloSpiralRS.java b/src/com/android/wallpaper/holospiral/HoloSpiralRS.java
index f2b846c..51db6c6 100644
--- a/src/com/android/wallpaper/holospiral/HoloSpiralRS.java
+++ b/src/com/android/wallpaper/holospiral/HoloSpiralRS.java
@@ -180,8 +180,7 @@ public class HoloSpiralRS {
private void createTextures() {
Bitmap bmp = BitmapFactory.decodeResource(
mResources, R.drawable.points_red_green, null);
- Allocation pointTexture = Allocation.createFromBitmap(
- mRS, bmp, Element.RGB_565(mRS), false);
+ Allocation pointTexture = Allocation.createFromBitmap(mRS, bmp);
pointTexture.uploadToTexture(0);
mScript.set_gPointTexture(pointTexture);
}