From d6ddcb7f00a7af95b452233d965b922632f78f21 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Mon, 24 May 2010 19:00:08 -0700 Subject: fix [2677468] some 3rd party GL ES apps get a 32-bits surface by default and fail force all SurfaceView to 565 Change-Id: I8ebfa1239d8e4fa097c2e544677fb92fa20b39bd --- opengl/java/android/opengl/GLSurfaceView.java | 1 - 1 file changed, 1 deletion(-) (limited to 'opengl') diff --git a/opengl/java/android/opengl/GLSurfaceView.java b/opengl/java/android/opengl/GLSurfaceView.java index f904cdf..2ff231d 100644 --- a/opengl/java/android/opengl/GLSurfaceView.java +++ b/opengl/java/android/opengl/GLSurfaceView.java @@ -222,7 +222,6 @@ public class GLSurfaceView extends SurfaceView implements SurfaceHolder.Callback // underlying surface is created and destroyed SurfaceHolder holder = getHolder(); holder.addCallback(this); - holder.setFormat(PixelFormat.RGB_565); // setType is not needed for SDK 2.0 or newer. Uncomment this // statement if back-porting this code to older SDKs. // holder.setType(SurfaceHolder.SURFACE_TYPE_GPU); -- cgit v1.1