mirror of https://github.com/yshui/picom.git
backend: glx: address some clang-tidy issues, run clang-format
This commit is contained in:
parent
5c03f101f2
commit
8eff87f2a3
|
@ -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.
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue