From 6cff1a49d2b124266f8da41065c471d80cdd32e2 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 17 May 2023 18:49:16 +0200 Subject: Fix all warnings --- include/egl.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'include') 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); -- cgit v1.2.3