[client] add a MPV glsl style effect loader

This commit is contained in:
Geoffrey McRae
2026-07-18 08:41:38 +10:00
parent 215f7cb096
commit 78802319e3
22 changed files with 1494 additions and 45 deletions

View File

@@ -328,7 +328,7 @@ static EGL_TexStatus egl_texDMABUFGet(EGL_Texture * texture, GLuint * tex,
return EGL_TEX_STATUS_OK;
}
static EGL_TexStatus egl_texDMABUFBind(EGL_Texture * texture)
static EGL_TexStatus egl_texDMABUFBind(EGL_Texture * texture, GLuint unit)
{
GLuint tex;
EGL_TexStatus status;
@@ -336,7 +336,7 @@ static EGL_TexStatus egl_texDMABUFBind(EGL_Texture * texture)
if ((status = egl_texDMABUFGet(texture, &tex, NULL)) != EGL_TEX_STATUS_OK)
return status;
egl_stateBindTexture(0, GL_TEXTURE_EXTERNAL_OES, tex);
egl_stateBindTexture(unit, GL_TEXTURE_EXTERNAL_OES, tex);
return EGL_TEX_STATUS_OK;
}