From fc72ee5775f8eea7be7a88378c1f06e37e277211 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Sat, 14 Jan 2023 15:25:22 +0100 Subject: [PATCH] haiku: cast pointer to SDL_FunctionPointer --- src/video/haiku/SDL_bopengl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/haiku/SDL_bopengl.cc b/src/video/haiku/SDL_bopengl.cc index b3e383eea..8d72833bb 100644 --- a/src/video/haiku/SDL_bopengl.cc +++ b/src/video/haiku/SDL_bopengl.cc @@ -72,7 +72,7 @@ SDL_FunctionPointer HAIKU_GL_GetProcAddress(_THIS, const char *proc) get_image_symbol((image_id) (addr_t) _this->gl_config.dll_handle, proc, B_SYMBOL_TYPE_ANY, &location)) == B_OK) { - return location; + return (SDL_FunctionPointer)location; } else { SDL_SetError("Couldn't find OpenGL symbol"); return NULL;