Cant find the solution for this GLSurfaceView error

by satish bhoyar » Wed, 03 Feb 2010 17:04:48 GMT


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

--



Cant find the solution for this GLSurfaceView error

by satish bhoyar » Wed, 03 Feb 2010 17:05:03 GMT


 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

--


Sponsored Links


Cant find the solution for this GLSurfaceView error

by MrChaz » Fri, 05 Feb 2010 01:24:23 GMT


 As the message suggests you're using a direct buffer to store you
vertex and or texture co-ordinates.
You need to use allocateDirect() instead.  Even though you can do it
the other way in 1.5 you shouldn't because it can cause random crashes




--



Other Threads

1. Service or no service

after reading the article
http://www.androidguys.com/2009/09/09/diamonds-are-forever-services-are-not/

I want to ask about creating an Android app that need to run always!
The app is an ftp server listening for my PC client to send pictures.
The sending can occur anytime so the Android server "MUST" run

Here's the question:

Service can be killed by the user and the android system.
The can fall asleep when the device falls asleep.

What about Activitys,  can i do this simply trough an Activity?
If my activity create a thread for the server to run in.
When a client connect, the thread will receive the picture(s)
and notify Activity and then thread continue Listen.

What are the considerations here?


-- 

2. disable the search key android alertdialog

Hi,
Anyone know of a way to prevent the search key from canceling an alert
dialog? I have alert.setCancelable(false); and it works fine for the
back button, but when i hit the search key it goes to search.. and
when I close the search my NON-Cancelable dialog is gone. any way to
fix this. Please help

-- 

3. Sipdroid build problem

4. Localization in Android for Indian Languages

5. Exerciser Monkey and media volume

6. Why on earth do the Android Ant tools use javac with encoding="ascii"?

7. wrong soap response it is in String except XML