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
f5cc40c14d
commit
d9c8979193
34 changed files with 174 additions and 146 deletions
|
@ -198,14 +198,14 @@ static int GLES_LoadFunctions(GLES_RenderData * data)
|
|||
#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 GLES function %s: %s", #func, SDL_GetError()); \
|
||||
} \
|
||||
} while ( 0 );
|
||||
#define SDL_PROC_OES(ret,func,params) \
|
||||
do { \
|
||||
*(void**)&data->func = SDL_GL_GetProcAddress(#func); \
|
||||
data->func = SDL_GL_GetProcAddress(#func); \
|
||||
} while ( 0 );
|
||||
#endif /* __SDL_NOGETPROCADDR__ */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue