Merge "Wallpaper software rendering fallback Bug #8230579"

This commit is contained in:
Romain Guy
2013-02-20 18:32:42 +00:00
committed by Android (Google) Code Review

View File

@ -485,14 +485,12 @@ public class ImageWallpaper extends WallpaperService {
glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) {
throw new RuntimeException("Cannot swap buffers");
}
boolean status = mEgl.eglSwapBuffers(mEglDisplay, mEglSurface);
checkEglError();
finishGL();
return true;
return status;
}
private FloatBuffer createMesh(int left, int top, float right, float bottom) {