haiku: cast pointer to SDL_FunctionPointer

This commit is contained in:
Anonymous Maarten 2023-01-14 15:25:22 +01:00
parent 8238a128c3
commit fc72ee5775

View file

@ -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;