mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-22 15:25:36 +00:00
Functions which return function pointers now return SDL_FunctionPointer instead of void*
This fixes the clang warning "Cast between pointer-to-function and pointer-to-object is an extension" You can define SDL_FUNCTION_POINTER_IS_VOID_POINTER in your project to restore the previous behavior. Fixes https://github.com/libsdl-org/SDL/issues/2866
This commit is contained in:
@@ -82,7 +82,7 @@ void RPI_DestroyWindow(_THIS, SDL_Window *window);
|
||||
|
||||
/* OpenGL/OpenGL ES functions */
|
||||
int RPI_GLES_LoadLibrary(_THIS, const char *path);
|
||||
void *RPI_GLES_GetProcAddress(_THIS, const char *proc);
|
||||
SDL_FunctionPointer RPI_GLES_GetProcAddress(_THIS, const char *proc);
|
||||
void RPI_GLES_UnloadLibrary(_THIS);
|
||||
SDL_GLContext RPI_GLES_CreateContext(_THIS, SDL_Window *window);
|
||||
int RPI_GLES_MakeCurrent(_THIS, SDL_Window *window, SDL_GLContext context);
|
||||
|
||||
Reference in New Issue
Block a user