aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-05-17 18:49:16 +0200
committerdec05eba <dec05eba@protonmail.com>2023-05-17 18:49:16 +0200
commit6cff1a49d2b124266f8da41065c471d80cdd32e2 (patch)
treeff15da38af695c0bb149165db201765e0f4fc050 /include
parent715a3c612a606465ee5526efe53029741ee4c7f9 (diff)
Fix all warnings
Diffstat (limited to 'include')
-rw-r--r--include/egl.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/egl.h b/include/egl.h
index fb8e887..e410958 100644
--- a/include/egl.h
+++ b/include/egl.h
@@ -90,6 +90,10 @@ typedef void (*__eglMustCastToProperFunctionPointerType)(void);
#define GL_COMPILE_STATUS 0x8B81
#define GL_LINK_STATUS 0x8B82
+typedef unsigned int (*FUNC_eglExportDMABUFImageQueryMESA)(EGLDisplay dpy, EGLImageKHR image, int *fourcc, int *num_planes, uint64_t *modifiers);
+typedef unsigned int (*FUNC_eglExportDMABUFImageMESA)(EGLDisplay dpy, EGLImageKHR image, int *fds, int32_t *strides, int32_t *offsets);
+typedef void (*FUNC_glEGLImageTargetTexture2DOES)(unsigned int target, GLeglImageOES image);
+
typedef struct {
void *egl_library;
void *gl_library;
@@ -115,9 +119,9 @@ typedef struct {
unsigned int (*eglSwapBuffers)(EGLDisplay dpy, EGLSurface surface);
__eglMustCastToProperFunctionPointerType (*eglGetProcAddress)(const char *procname);
- unsigned int (*eglExportDMABUFImageQueryMESA)(EGLDisplay dpy, EGLImageKHR image, int *fourcc, int *num_planes, uint64_t *modifiers);
- unsigned int (*eglExportDMABUFImageMESA)(EGLDisplay dpy, EGLImageKHR image, int *fds, int32_t *strides, int32_t *offsets);
- void (*glEGLImageTargetTexture2DOES)(unsigned int target, GLeglImageOES image);
+ FUNC_eglExportDMABUFImageQueryMESA eglExportDMABUFImageQueryMESA;
+ FUNC_eglExportDMABUFImageMESA eglExportDMABUFImageMESA;
+ FUNC_glEGLImageTargetTexture2DOES glEGLImageTargetTexture2DOES;
unsigned int (*glGetError)(void);
const unsigned char* (*glGetString)(unsigned int name);