Skip to content

Commit

Permalink
Add support for setPreserveEGLContextOnPause().
Browse files Browse the repository at this point in the history
  • Loading branch information
learnopengles committed May 20, 2013
1 parent 0a1a688 commit 7ae98c9
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -27,6 +27,10 @@ public void onCreate(SurfaceHolder surfaceHolder) {
{
// Request an OpenGL ES 2.0 compatible context.
setEGLContextClientVersion(2);

// On Honeycomb+ devices, this improves the performance when
// leaving and resuming the live wallpaper.
setPreserveEGLContextOnPause(true);

// Set the renderer to our user-defined renderer.
setRenderer(getNewRenderer());

0 comments on commit 7ae98c9

Please sign in to comment.