got an problem on testing my app on device (htc desire), but works on emulator
10-15 14:34:05.629: ERROR/AndroidRuntime(25714): FATAL EXCEPTION: GLThread 9
10-15 14:34:05.629: ERROR/AndroidRuntime(25714): java.lang.NullPointerException
10-15 14:34:05.629: ERROR/AndroidRuntime(25714): at com.google.android.gles_jni.GLImpl.glVertexPointer(GLImpl.java:1121)
10-15 14:34:05.629: ERROR/AndroidRuntime(25714): at de.mydrawing.Main.mainLoopIteration(Main.java:72)
10-15 14:34:05.629: ERROR/AndroidRuntime(25714): at de.mydrawing.GameActivity.onDrawFrame(GameActivity.java:180)
10-15 14:34:05.629: ERROR/AndroidRuntime(25714): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1341)
10-15 14:34:05.629: ERROR/AndroidRuntime(25714): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1118)
when i comment these lines out it starts but then its black screen
- Code: Select all
gl.glVertexPointer(3, GL10.GL_FLOAT, 0, vertices);
gl.glColorPointer( 4, GL10.GL_FLOAT, 0, colors );
anybody an idea what the problem can be?


