glamor: replace XNFvasprintf() by vasprintf()

No need for carrying around our own (incomplete) implementation
of a standard libc function.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-11-06 15:37:12 +01:00
committed by Enrico Weigelt
parent 6c924809e4
commit 0c7799b916

View File

@@ -93,7 +93,11 @@ glamor_link_glsl_prog(ScreenPtr screen, GLint prog, const char *format, ...)
va_list va;
va_start(va, format);
XNFvasprintf(&label, format, va);
if (vasprintf(&label, format, va) == -1) {
ErrorF("glamor_link_glsl_prog() memory allocation failed\n");
va_end(va);
return FALSE;
}
glObjectLabel(GL_PROGRAM, prog, -1, label);
free(label);
va_end(va);