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