tx2: opengl render to external OES texture generated by encoder, is there any way?

env:
tegrax2 + jetson3.2

code:
glGenTextures(1, &texture_);
glBindTexture(GL_TEXTURE_EXTERNAL_OES, texture_);
eglImageTargetTexture2DOES(GL_TEXTURE_EXTERNAL_OES, eglimg);//eglimg is yuv420 creating from encoder
glGenFramebuffers(1, &frame_buff_);
glBindFramebuffer(GL_FRAMEBUFFER, frame_buff_);
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_EXTERNAL_OES, texture_, 0);
auto ret = glCheckFramebufferStatus(GL_FRAMEBUFFER);

It cann’t work properly

glCheckFramebufferStatus return error 502

And I test in Android it can work properly.
the differance is Android rendering to native window binding to eglimage,
but there are no native window in linux, and also fbo not support

Hi ColinA,
Please refer to below samples for rendering:
tegra_multimedia_api\samples\common\classes\NvEglRenderer.cpp
tegra_multimedia_api\argus\samples\utils\PreviewConsumer.cpp