mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-16 16:28:13 +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:
@@ -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()); \
|
||||
} \
|
||||
|
Reference in New Issue
Block a user