aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-04-15 04:14:43 +0200
committerdec05eba <dec05eba@protonmail.com>2023-04-15 04:14:43 +0200
commit5c714ea7142272b7b95b95019501df1d49691db1 (patch)
tree410c5a7998a3c35954787469b86e2a5e22e98207
parent4e59a9b4b63cd6b882a9ef36a082b652fe715fa9 (diff)
Move EGL define to egl.h from window texture .c
-rw-r--r--include/egl.h1
-rw-r--r--src/window_texture.c4
2 files changed, 1 insertions, 4 deletions
diff --git a/include/egl.h b/include/egl.h
index 1021fc4..1056a5c 100644
--- a/include/egl.h
+++ b/include/egl.h
@@ -43,6 +43,7 @@ typedef void (*__eglMustCastToProperFunctionPointerType)(void);
#define EGL_GL_TEXTURE_2D 0x30B1
#define EGL_TRUE 1
#define EGL_IMAGE_PRESERVED_KHR 0x30D2
+#define EGL_NATIVE_PIXMAP_KHR 0x30B0
#define GL_TEXTURE_2D 0x0DE1
#define GL_RGB 0x1907
diff --git a/src/window_texture.c b/src/window_texture.c
index 741a145..81bf053 100644
--- a/src/window_texture.c
+++ b/src/window_texture.c
@@ -1,10 +1,6 @@
#include "../include/window_texture.h"
#include <X11/extensions/Xcomposite.h>
-#define EGL_TRUE 1
-#define EGL_IMAGE_PRESERVED_KHR 0x30D2
-#define EGL_NATIVE_PIXMAP_KHR 0x30B0
-
static int x11_supports_composite_named_window_pixmap(Display *display) {
int extension_major;
int extension_minor;