OSDN Git Service

Clear any stale errors before allocating layer
authorPaul Drews <paul.drews@intel.com>
Thu, 19 Jul 2012 21:12:22 +0000 (14:12 -0700)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Tue, 22 Dec 2015 04:13:49 +0000 (12:13 +0800)
commit150984014a49a6dd78b8dcdc7fb78b56952e617b
treea8de4ecd25b2bcf08e117f421f6a4366d0386ed1
parent2c84707f94f0ec34cbd22e57af444006811aa63c
Clear any stale errors before allocating layer

Symptom:  On first boot, the "Make yourself at home" dialog
was not drawn, but was actually present.  This prevented
swiping the home screen until you happened to click on the
invisible "OK" button or take some other action that caused
the screen to get redrawn.

Cause:  GL errors remain within GL until they are cleared by
retrieving them.  The createLayer function was affected by a
stale error leftover from some previous code sequence.  When
it retrieved GL error status to check for success/fail of an
operation it got one of these "stale" errors and erroneously
concluded that the operation had failed.

This change clears any stale errors before embarking the
operation sequence that it wants to check for success/fail.

Issue: AXIA-425
Change-Id: I30b7fe1fbc354d3fea5e1d8cefa1be363fc68f8c
Signed-off-by: Paul Drews <paul.drews@intel.com>
libs/hwui/LayerRenderer.cpp