Skip to content Skip to sidebar Skip to footer

Glcreateshader And Glcreateprogram Fail On Android

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 bases with regard

Solution 1:

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()

Post a Comment for "Glcreateshader And Glcreateprogram Fail On Android"