diff --git a/libhwcomposer/hwcomposer.cpp b/libhwcomposer/hwcomposer.cpp index 2a48a1c..7e3a6bf 100644 --- a/libhwcomposer/hwcomposer.cpp +++ b/libhwcomposer/hwcomposer.cpp @@ -1669,9 +1669,9 @@ static int hwc_set(hwc_composer_device_t *dev, EGLBoolean sucess = eglSwapBuffers((EGLDisplay)dpy, (EGLSurface)sur); if (!sucess) { ret = HWC_EGL_ERROR; - } else { - CALC_FPS(); } + } else { + CALC_FPS(); } // Unlock the previously locked buffer, since the overlay has completed reading the buffer