Move EGL define to egl.h from window texture .c

This commit is contained in:
dec05eba 2023-04-15 04:14:43 +02:00
parent 4e59a9b4b6
commit 5c714ea714
2 changed files with 1 additions and 4 deletions

View File

@ -43,6 +43,7 @@ typedef void (*__eglMustCastToProperFunctionPointerType)(void);
#define EGL_GL_TEXTURE_2D 0x30B1 #define EGL_GL_TEXTURE_2D 0x30B1
#define EGL_TRUE 1 #define EGL_TRUE 1
#define EGL_IMAGE_PRESERVED_KHR 0x30D2 #define EGL_IMAGE_PRESERVED_KHR 0x30D2
#define EGL_NATIVE_PIXMAP_KHR 0x30B0
#define GL_TEXTURE_2D 0x0DE1 #define GL_TEXTURE_2D 0x0DE1
#define GL_RGB 0x1907 #define GL_RGB 0x1907

View File

@ -1,10 +1,6 @@
#include "../include/window_texture.h" #include "../include/window_texture.h"
#include <X11/extensions/Xcomposite.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) { static int x11_supports_composite_named_window_pixmap(Display *display) {
int extension_major; int extension_major;
int extension_minor; int extension_minor;