mirror of
https://github.com/encounter/SDL.git
synced 2025-12-14 07:36:09 +00:00
Still more compiler warning fixes for various platforms.
This commit is contained in:
@@ -39,11 +39,15 @@ Emscripten_GLES_LoadLibrary(_THIS, const char *path) {
|
||||
if (!_this->egl_data) {
|
||||
return SDL_OutOfMemory();
|
||||
}
|
||||
|
||||
|
||||
/* Emscripten forces you to manually cast eglGetProcAddress to the real
|
||||
function type; grep for "__eglMustCastToProperFunctionPointerType" in
|
||||
Emscripten's egl.h for details. */
|
||||
_this->egl_data->eglGetProcAddress = (void *(EGLAPIENTRY *)(const char *)) eglGetProcAddress;
|
||||
|
||||
LOAD_FUNC(eglGetDisplay);
|
||||
LOAD_FUNC(eglInitialize);
|
||||
LOAD_FUNC(eglTerminate);
|
||||
LOAD_FUNC(eglGetProcAddress);
|
||||
LOAD_FUNC(eglChooseConfig);
|
||||
LOAD_FUNC(eglGetConfigAttrib);
|
||||
LOAD_FUNC(eglCreateContext);
|
||||
|
||||
Reference in New Issue
Block a user