[client] egl: implemented SPICE display support

This commit is contained in:
Geoffrey McRae
2022-05-22 18:19:58 +10:00
parent 6699018ed1
commit 247e867f18
17 changed files with 273 additions and 86 deletions

View File

@@ -54,7 +54,8 @@ static void egl_texDMABUFCleanup(TexDMABUF * this)
// dmabuf functions
static bool egl_texDMABUFInit(EGL_Texture ** texture, EGLDisplay * display)
static bool egl_texDMABUFInit(EGL_Texture ** texture, EGL_TexType type,
EGLDisplay * display)
{
TexDMABUF * this = calloc(1, sizeof(*this));
*texture = &this->base.base;
@@ -67,7 +68,7 @@ static bool egl_texDMABUFInit(EGL_Texture ** texture, EGLDisplay * display)
}
EGL_Texture * parent = &this->base.base;
if (!egl_texBufferStreamInit(&parent, display))
if (!egl_texBufferStreamInit(&parent, type, display))
{
vector_destroy(&this->images);
free(this);