"KunalAgarwal[m], might help if..." <- sorry for the delay, so our end goal is to perform Debayering on the raw input data I have a dmabuf, imported it to EGL to get an EGLImage, bound the EGLImage as a GL texture (this all happens in importDmabuf() function Now all this happens for the input buffer which contains raw image data captured from the sensor Now according to process, I need to attach the texture to FBO for rendering. But I have a output buffer which I want to set as render target or maybe FBO generated from my output buffer