Wednesday, June 16, 2010

[android-developers] Correct way to set up buffer for glReadPixels?

Hi,
What is the correct way to set up a buffer for the return data for
gl.glReadPixels? Does it have to be a direct buffer or is simply
wrapping an integer array ok (with IntBuffer.wrap)? I have seen both
used by various people in online examples.

I am currently wrapping an integer array and it works fine - except on
one particular phone manufacturer (Sony) on which apparently the data
returned is sometimes corrupt - and I am wondering if this might be
the cause?

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment