Hi, This is due to an incompatibility between Java signed byte type and OpenGL's unsigned byte type. I get around this issue by casting the returned byte value to an int. If the value is negative, add 256, due to two's complement arithmetic. For example, a signed byte value of -1 is the same as an unsigned value of 255 (full alpha).
-Steve On Aug 2, 8:35 pm, BaoXu Jiang <[email protected]> wrote: > Hi, > > it is always return -1 when call Android opengl es apiglReadPixels(), > it is a bug of Android? > > Thanks, --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

