OPENGL ES not working : no Current context

前端 未结 1 1907
说谎
说谎 2021-02-13 04:44

I tried the program as shown in book OpenGL ES2 for Android, but it\'s not working!!

I have tested in Odroid E, samsung s3, samsung y, samsung star!!

the         


        
1条回答
  •  你的背包
    2021-02-13 05:18

    The problem is with glSurfaceView, as it does not run on the OpenGL thread. The glSurfaceView should be on the main android thread.

    Here you find additional info about it:

    opengl es api with no current context

    OpenGL ES 2.0 Context in Android

    Hope this help.

    0 讨论(0)
提交回复
热议问题