From b98a501e0dee571a01e8751538ebb920d47bf4bb Mon Sep 17 00:00:00 2001
From: Elad Lahav <[EMAIL REDACTED]>
Date: Tue, 10 Jan 2023 05:21:08 -0500
Subject: [PATCH] glGetProcAddress() should return SDL_FunctionPointer
---
src/video/qnx/gl.c | 2 +-
src/video/qnx/sdl_qnx.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/video/qnx/gl.c b/src/video/qnx/gl.c
index 29393fbaa6e0..a9338ba38a49 100644
--- a/src/video/qnx/gl.c
+++ b/src/video/qnx/gl.c
@@ -154,7 +154,7 @@ glLoadLibrary(_THIS, const char *name)
* @param proc Function name
* @return Function address
*/
-void *
+SDL_FunctionPointer
glGetProcAddress(_THIS, const char *proc)
{
return eglGetProcAddress(proc);
diff --git a/src/video/qnx/sdl_qnx.h b/src/video/qnx/sdl_qnx.h
index 65e07988e901..3a3fddb75e36 100644
--- a/src/video/qnx/sdl_qnx.h
+++ b/src/video/qnx/sdl_qnx.h
@@ -37,7 +37,7 @@ extern void handleKeyboardEvent(screen_event_t event);
extern int glGetConfig(EGLConfig *pconf, int *pformat);
extern int glLoadLibrary(_THIS, const char *name);
-void *glGetProcAddress(_THIS, const char *proc);
+extern SDL_FunctionPointer glGetProcAddress(_THIS, const char *proc);
extern SDL_GLContext glCreateContext(_THIS, SDL_Window *window);
extern int glSetSwapInterval(_THIS, int interval);
extern int glSwapWindow(_THIS, SDL_Window *window);