#include "gl.h"
#include "gstglupload.h"
+#if GST_GL_HAVE_PLATFORM_EGL
+#include "egl/gsteglimagememory.h"
+#endif
+
/**
* SECTION:gstglupload
* @short_description: an object that uploads to GL textures
return TRUE;
}
+#if GST_GL_HAVE_PLATFORM_EGL
+ if (!upload->priv->tex_id && gst_is_egl_image_memory (mem))
+ gst_gl_context_gen_texture (upload->context, &upload->priv->tex_id,
+ GST_VIDEO_FORMAT_RGBA, 0, 0);
+#endif
+
if (!upload->priv->tex_id)
gst_gl_context_gen_texture (upload->context, &upload->priv->tex_id,
GST_VIDEO_FORMAT_RGBA, GST_VIDEO_INFO_WIDTH (&upload->in_info),