glCreateShader and glCreateProgram fail on android

前端 未结 1 1051
我在风中等你
我在风中等你 2021-01-11 12:26

I\'m having a very difficult problem creating a shader program on android. when I call glCreateShader or glCreateProgram each always returns 0.

I\'ve covered all my

相关标签:
1条回答
  • 2021-01-11 13:03

    For the ones who are looking for the answer, it is hidden in the comments. I am quoting @Reigertje from comments.

    Shader calls should be within a GL thread that is onSurfaceChanged(), onSurfaceCreated() or onDrawFrame()

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