Rajawali / RajawaliVuforia

Rajawali + Vuforia Augmented Reality
Other
227 stars 108 forks source link

OpenGL Error: invalid value 1281 #31

Closed kerigen closed 10 years ago

kerigen commented 10 years ago

When I run my app for the first time on any device, everything runs ok .. the app start and works perfectly, but if I exit my app and run it again I get this ERROR:

FATAL EXCEPTION: GLThread 15673 java.lang.RuntimeException: OpenGL Error: invalid value 1281 at rajawali.renderer.RajawaliRenderer.onDrawFrame(RajawaliRenderer.java:387) at rajawali.vuforia.RajawaliVuforiaRenderer.onDrawFrame(RajawaliVuforiaRenderer.java:124) at com.example.test3d.MyRenderer.onDrawFrame(MyRenderer.java:50) at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1516) at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)

this is my onDrawFrame function:

public void onDrawFrame(GL10 glUnused) { super.onDrawFrame(glUnused); }

ghost commented 10 years ago

I actually get the exact same issue.

MasDennis commented 10 years ago

This has been fixed in the latest commit.

ghost commented 10 years ago

I can confirm that the problem is solved.

That is awesome, thank you !

MasDennis commented 10 years ago

You're welcome :)

fangyue commented 9 years ago

Hi MasDennis, would you please share some mind on how this issue is caused and fixed? Because I might meet the same issue in new build of rajawali 04-25 01:48:28.687 17872-18943/com.vrexplorer.vrcinema E/AndroidRuntime﹕ FATAL EXCEPTION: GLThread 13072 Process: com.vrexplorer.vrcinema, PID: 17872 java.lang.RuntimeException: OpenGL Error: invalid value 1281 at rajawali.renderer.RajawaliRenderer.onDrawEye(RajawaliRenderer.java:455) at com.vrexplorer.vrcinema.library.LibraryActivity$LibraryRenderer.onDrawEye(LibraryActivity.java:132) at rajawali.renderer.RajawaliRenderer.onDrawFrame(RajawaliRenderer.java:402) at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1532) at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1249)