mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-28 23:49:12 +00:00
revert the recent typecast assignment changes (see bug #4079)
also change the void* typedefs for the two vulkan function pointers added in vulkan_internal.h into generic function pointer typedefs.
This commit is contained in:
parent
ba9ede12fb
commit
40b27fd51b
34 changed files with 174 additions and 146 deletions
|
@ -290,11 +290,11 @@ static int GLES2_LoadFunctions(GLES2_DriverContext * data)
|
|||
#endif
|
||||
|
||||
#if defined __SDL_NOGETPROCADDR__
|
||||
#define SDL_PROC(ret,func,params) *(void**)&data->func=func;
|
||||
#define SDL_PROC(ret,func,params) data->func=func;
|
||||
#else
|
||||
#define SDL_PROC(ret,func,params) \
|
||||
do { \
|
||||
*(void **)&data->func = SDL_GL_GetProcAddress(#func); \
|
||||
data->func = SDL_GL_GetProcAddress(#func); \
|
||||
if ( ! data->func ) { \
|
||||
return SDL_SetError("Couldn't load GLES2 function %s: %s", #func, SDL_GetError()); \
|
||||
} \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue