Merge "Update to use SurfaceConfig."

This commit is contained in:
Jason Sams authored and Android (Google) Code Review committed 2010-10-10 18:05:04 -07:00
commit c4d61fc0f5
1 file changed
+4 -1
+4 -1
View File
@@ -146,7 +146,10 @@ public class AllApps3D extends RSSurfaceView
getHolder().setFormat(PixelFormat.TRANSLUCENT);
if (sRS == null) {
sRS = createRenderScript(true);
RenderScriptGL.SurfaceConfig sc = new RenderScriptGL.SurfaceConfig();
sc.setDepth(16, 16);
sc.setAlpha(8, 8);
sRS = createRenderScript(sc);
} else {
createRenderScript(sRS);
}