diff options
author | Matt Holgate <matt@emobix.co.uk> | 2014-06-25 14:40:20 +0100 |
---|---|---|
committer | Matt Holgate <matt@emobix.co.uk> | 2014-06-25 14:40:20 +0100 |
commit | e8f0394761e24ad1cdb143aa40e5594e93a97f0b (patch) | |
tree | d738724d0b7ddd7b6a59200593deaa5c912ab07c /platform/ios/Classes | |
parent | 38ae8629788b21ae653943f8ef4f02f9bbd74b96 (diff) | |
download | mupdf-e8f0394761e24ad1cdb143aa40e5594e93a97f0b.tar.xz |
Fix for pages being repeated when running on Android Honeycomb.
Fixes bug #695191 - Mupdf Build49/armv7a & Android 3.1: cycles
through subset of pages & page scrubber
The problem here was that in Honeycomb, various bitmap operations
(including drawing via JNI) do not update the bitmap generation count.
When hardware acceleration is enabled, this means that the underlying GL
layer is not aware that the bitmap has changed, and ends up reusing old
textures.
To workaround this, we erase the bitmap before drawing the page. Erase
appears to be the only operation I could find (after pouring through the
source), which actually increments the generation count. The other option
would have been to disable hardware acceleration, but that was far less ideal.
Diffstat (limited to 'platform/ios/Classes')
0 files changed, 0 insertions, 0 deletions