commit | c88e357d1ed9dadfc0efb3dfbe92f24460674ef5 | [log] [tgz] |
---|---|---|
author | Romain Guy <romainguy@google.com> | Sat Jan 22 00:32:12 2011 -0800 |
committer | Romain Guy <romainguy@google.com> | Sat Jan 22 00:35:23 2011 -0800 |
tree | af36de378d845f6db755c13191d8118f9711fd8b | |
parent | acf36126e4620a0cc36d4e5b1268d15777ea4361 [diff] |
Fix regression with hardware layers. The renderer was checking whether the layer's region is a rect to draw it with a simple quad. This test was done against the layer's region structure, which was cleared after generating the mesh. Unfortunately Region::isRect() returns true when the region is empty, which was causing the renderer to always use a quad to draw a mesh on screen. Change-Id: If4b874579ee0cedcb67367c9efa5c0c98ca55231