I'm trying to compile a simple geometry shader in Android. I'm using GLES32.GL_GEOMETRY_SHADER
as the shader type so that shader creation uses GLES32.glCreateShader(GLES32.GL_GEOMETRY_SHADER);
. Context has been set in the GLSurfaceView
as setEGLContextClientVersion(3);
.
When it creates the shader, the following error is shown:
2021-04-01 18:00:16.120 7289-7332/com.alura.dyno E/emuglGLESv2_enc: device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glCreateShader:1871 GL error 0x500
Vertex and Fragment shaders are generated without any problem.
- Can I use geometry shaders in AVDs? There seems to be some restriction in regard to newer versions of OpenGL ES in AVD;
- If so, is there any other reason that might be causing this problem?