There is already code for this: gl_surface_texture.cc in line 33. In fact, if you move the call to GLSurfaceTexture::Initialize() to inside the check for opengl and modify this a bit to maybe not throw (or if you catch the exception) you can fix this.
There is already code for this: gl_surface_ texture. cc in line 33. In fact, if you move the call to GLSurfaceTextur e::Initialize( ) to inside the check for opengl and modify this a bit to maybe not throw (or if you catch the exception) you can fix this.
Wanna try?