mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
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:
committed by
Enrico Weigelt
parent
6c924809e4
commit
0c7799b916
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user