The buffer needs to be direct so that it isn't moved around in memory.
You can do this by creating it using ByteBuffer.allocateDirect. You
can see examples in demos:
http://developer.android.com/intl/de/resources/samples/ApiDemos/src/com/example/android/apis/graphics/TriangleRenderer.html

On Feb 3, 4:04 am, satish bhoyar <[email protected]> wrote:
> Hi all,
>
> I have a code for GLSurfaceView which runs fine with sdk 1.5. I am trying to
> use it in the sdk 2.0 I am getting following error - >
> "*Application called a GL11  Pointer method with an Indirect Buffer*"
>
> This is the line at which the error is coming,
> *gl.glVertexPointer(3, GL10.GL_FLOAT, 0, slicesBuffers[i]);
>
> *Please anybody explains me why this error comes & how to solve it?
>
> or any other  suggestion is also good for me.
>
> Thanks,
> SaT

-- 
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

Reply via email to