@@ -90,6 +90,7 @@ public:
GLenum texture_unit_; /**< Texture unit associated with this image eg (GL_TEXTURE0) */
GLuint texture_; /**< OpenGL texture object ID */
GLuint fbo_; /**< OpenGL frame buffer object ID */
+ bool dmabuf_import_failed_ = false; /**< Previous image import failed */
private:
LIBCAMERA_DISABLE_COPY_AND_MOVE(eGLImage)
@@ -165,7 +165,8 @@ int eGL::createDMABufTexture2D(eGLImage &eglImage, int fd, bool output)
NULL, image_attrs);
if (image == EGL_NO_IMAGE_KHR) {
- LOG(eGL, Error) << "eglCreateImageKHR fail";
+ LOG(eGL, Debug) << "eglCreateImageKHR fail";
+ eglImage.dmabuf_import_failed_ = true;
return -ENODEV;
}