From 798a7ef698bfafccf0d345aaca907ee8eb63b714 Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Tue, 8 Aug 2023 11:20:58 +0200 Subject: [PATCH] include: Fix the PFN declarations to be pointers as they should Broken by b5f9820d905a275bc01bbffa9b4927ec11286f8d back in 2016. Signed-off-by: Sylvain Munaut Acked-by: Antonio Gomes Reviewed-by: Adam Jackson Reviewed-by: Eric Engestrom Part-of: --- include/GL/mesa_glinterop.h | 48 ++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/include/GL/mesa_glinterop.h b/include/GL/mesa_glinterop.h index 385c65af6f0..886448f63a2 100644 --- a/include/GL/mesa_glinterop.h +++ b/include/GL/mesa_glinterop.h @@ -372,30 +372,30 @@ wglMesaGLInteropFlushObjects(HDC dpy, HGLRC context, GLsync *sync); -typedef int (PFNMESAGLINTEROPGLXQUERYDEVICEINFOPROC)(struct _XDisplay *dpy, struct __GLXcontextRec *context, - struct mesa_glinterop_device_info *out); -typedef int (PFNMESAGLINTEROPEGLQUERYDEVICEINFOPROC)(EGLDisplay dpy, EGLContext context, - struct mesa_glinterop_device_info *out); -typedef int (PFNWGLMESAGLINTEROPQUERYDEVICEINFOPROC)(HDC dpy, HGLRC context, - struct mesa_glinterop_device_info *out); -typedef int (PFNMESAGLINTEROPGLXEXPORTOBJECTPROC)(struct _XDisplay *dpy, struct __GLXcontextRec *context, - struct mesa_glinterop_export_in *in, - struct mesa_glinterop_export_out *out); -typedef int (PFNMESAGLINTEROPEGLEXPORTOBJECTPROC)(EGLDisplay dpy, EGLContext context, - struct mesa_glinterop_export_in *in, - struct mesa_glinterop_export_out *out); -typedef int (PFNWGLMESAGLINTEROPEXPORTOBJECTPROC)(HDC dpy, HGLRC context, - struct mesa_glinterop_export_in *in, - struct mesa_glinterop_export_out *out); -typedef int (PFNMESAGLINTEROPGLXFLUSHOBJECTSPROC)(struct _XDisplay *dpy, struct __GLXcontextRec *context, - unsigned count, struct mesa_glinterop_export_in *resources, - GLsync *sync); -typedef int (PFNMESAGLINTEROPEGLFLUSHOBJECTSPROC)(EGLDisplay dpy, EGLContext context, - unsigned count, struct mesa_glinterop_export_in *resources, - GLsync *sync); -typedef int (PFNWGLMESAGLINTEROPFLUSHOBJECTSPROC)(HDC dpy, HGLRC context, - unsigned count, struct mesa_glinterop_export_in *resources, - GLsync *sync); +typedef int (*PFNMESAGLINTEROPGLXQUERYDEVICEINFOPROC)(struct _XDisplay *dpy, struct __GLXcontextRec *context, + struct mesa_glinterop_device_info *out); +typedef int (*PFNMESAGLINTEROPEGLQUERYDEVICEINFOPROC)(EGLDisplay dpy, EGLContext context, + struct mesa_glinterop_device_info *out); +typedef int (*PFNWGLMESAGLINTEROPQUERYDEVICEINFOPROC)(HDC dpy, HGLRC context, + struct mesa_glinterop_device_info *out); +typedef int (*PFNMESAGLINTEROPGLXEXPORTOBJECTPROC)(struct _XDisplay *dpy, struct __GLXcontextRec *context, + struct mesa_glinterop_export_in *in, + struct mesa_glinterop_export_out *out); +typedef int (*PFNMESAGLINTEROPEGLEXPORTOBJECTPROC)(EGLDisplay dpy, EGLContext context, + struct mesa_glinterop_export_in *in, + struct mesa_glinterop_export_out *out); +typedef int (*PFNWGLMESAGLINTEROPEXPORTOBJECTPROC)(HDC dpy, HGLRC context, + struct mesa_glinterop_export_in *in, + struct mesa_glinterop_export_out *out); +typedef int (*PFNMESAGLINTEROPGLXFLUSHOBJECTSPROC)(struct _XDisplay *dpy, struct __GLXcontextRec *context, + unsigned count, struct mesa_glinterop_export_in *resources, + GLsync *sync); +typedef int (*PFNMESAGLINTEROPEGLFLUSHOBJECTSPROC)(EGLDisplay dpy, EGLContext context, + unsigned count, struct mesa_glinterop_export_in *resources, + GLsync *sync); +typedef int (*PFNWGLMESAGLINTEROPFLUSHOBJECTSPROC)(HDC dpy, HGLRC context, + unsigned count, struct mesa_glinterop_export_in *resources, + GLsync *sync); #ifdef __cplusplus }