summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2011-01-22 00:32:12 -0800
committerRomain Guy <romainguy@google.com>2011-01-22 00:35:23 -0800
commitc88e357d1ed9dadfc0efb3dfbe92f24460674ef5 (patch)
treeaf36de378d845f6db755c13191d8118f9711fd8b /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
parentacf36126e4620a0cc36d4e5b1268d15777ea4361 (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
Diffstat (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions