glGetShaderInfoLog returns empty string (android)

前端 未结 3 866
闹比i
闹比i 2020-12-18 00:26

I am modifying the version of the android version of the 2d texture example from OpenGl ES2.0 programming guide to change the fragment shader. this is written in pure Java a

3条回答
  •  庸人自扰
    2020-12-18 01:08

    I had the same problem.

    1. Make sure you have the following in ApplicationManufest.xml:

    2. Call this after initializing a GLSurfaceView

    glSurfaceView.SetEGLContextClientVersion(2);

提交回复
热议问题