OpenGL (Linux): suppress IO

Fix #1435
This commit is contained in:
Carter Li
2024-12-13 15:40:36 +08:00
parent ab1a11c9fa
commit 009a7888b5
+3
View File
@@ -1,5 +1,6 @@
#include "fastfetch.h"
#include "opengl.h"
#include "common/io/io.h"
#include <string.h>
@@ -140,6 +141,8 @@ static const char* detectByGlx(FFOpenGLResult* result)
FF_LIBRARY_LOAD_SYMBOL_VAR_MESSAGE(glx, data, XCloseDisplay);
FF_LIBRARY_LOAD_SYMBOL_VAR_MESSAGE(glx, data, XFree);
FF_SUPPRESS_IO();
return glxHandleData(result, &data);
}