backend: glx: address some clang-tidy issues, run clang-format

This commit is contained in:
Maxim Solovyov 2023-07-22 00:11:21 +03:00
parent 5c03f101f2
commit 8eff87f2a3
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -615,7 +615,7 @@ void glxext_init(Display *dpy, int screen) {
#endif
#undef check_ext
#define lookup(name) (name = (__typeof__(name))glXGetProcAddress((GLubyte *)#name))
#define lookup(name) ((name) = (__typeof__(name))glXGetProcAddress((GLubyte *)#name))
// Checking if the returned function pointer is NULL is not really necessary,
// or maybe not even useful, since glXGetProcAddress might always return
// something. We are doing it just for completeness' sake.

View File

@ -12,11 +12,11 @@
#undef glXBindTexImageEXT
#undef glXReleaseTexImageEXT
#include <X11/Xlib.h>
#include <xcb/xcb.h>
#include <xcb/render.h>
#include <xcb/xcb.h>
#include "log.h"
#include "compiler.h"
#include "log.h"
#include "utils.h"
#include "x.h"