GLConsumer is already attached to a context for new SurfaceTexture
Is SurfaceTexture attached to GLContext by default when created manually? If so, how? Here is an example, I'm trying to create my own SurfaceTexture and set it to TextureView : public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); TextView textView = (TextView) findViewById(R.id.version); TextureView textureView = (TextureView) findViewById(R.id.texture); int[] arr = new int[1]; GLES20.glGenTextures(1, arr, 0); int texName = arr[1]; SurfaceTexture