[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

@@ -48,13 +48,6 @@ bool util_fileGetContents(const char * filename, char ** buffer, size_t * length
return false;
}
if (fseek(fh, 0, SEEK_SET) != 0)
{
DEBUG_ERROR("Failed to seek");
fclose(fh);
return false;
}
long fsize = ftell(fh);
if (fsize < 0)
{
@@ -63,6 +56,13 @@ bool util_fileGetContents(const char * filename, char ** buffer, size_t * length
return false;
}
if (fseek(fh, 0, SEEK_SET) != 0)
{
DEBUG_ERROR("Failed to seek");
fclose(fh);
return false;
}
*buffer = malloc(fsize + 1);
if (!*buffer)
{