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>
Wed, 25 Sep 2013 02:48:22 +0000 (10:48 +0800)
commit35bbf0c06bfe3feccd62a742f4aca7bb26c45850
tree89ac7b9824c9dfc60af93f00999b34470de287a1
parent63f92901950cc72a5738da05dfcb25d567d0fa69
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