diff options
author | Mathias Agopian <mathias@google.com> | 2010-05-24 19:00:08 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2010-05-24 19:07:08 -0700 |
commit | d6ddcb7f00a7af95b452233d965b922632f78f21 (patch) | |
tree | ff19248cbc31678bf855594efb47754dfe25dd6e /opengl | |
parent | 2e948ca1a06470a1c4c581022eabaed593c58e27 (diff) | |
download | frameworks_base-d6ddcb7f00a7af95b452233d965b922632f78f21.zip frameworks_base-d6ddcb7f00a7af95b452233d965b922632f78f21.tar.gz frameworks_base-d6ddcb7f00a7af95b452233d965b922632f78f21.tar.bz2 |
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
Diffstat (limited to 'opengl')
-rw-r--r-- | opengl/java/android/opengl/GLSurfaceView.java | 1 |
1 files changed, 0 insertions, 1 deletions
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); |