Re: [AD] Android requries locking full bitmap at POT |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Sat, 26 May 2012 22:04:27 -0600, Trent Gamblin <trent@xxxxxxxxxx> wrote:
> I have this one Android, and it's not unpopular or cheap, it's a first
> gen Galaxy Tab. I've come to find out that glReadPixels will CRASH
> without warning if you call it with anything but the next POT higher
> than the whole bitmap, starting at the first pixel. Does anyone know
> if there's some way to predict this? I've never heard of it before.
> The man page for glReadPixels says it's OK to read outside the bitmap,
> those pixels will just be undefined, but that's not really the
> problem.
Maybe it doesn't have to be the next POT, but simply a multiple of
4, 16, or 32, or something like that? Hoping we can get lucky..
Peter