From 87ad7a1c5077aec101acb7855f72fe8b21cd09ea Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Wed, 25 Dec 2013 16:57:59 +0100 Subject: [PATCH] Fixed pointer from integer warning and bug if compiled without EGL. --- src/video/windows/SDL_windowsopengl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/video/windows/SDL_windowsopengl.c b/src/video/windows/SDL_windowsopengl.c index 2960bc56f8552..e383e7277f219 100644 --- a/src/video/windows/SDL_windowsopengl.c +++ b/src/video/windows/SDL_windowsopengl.c @@ -604,8 +604,9 @@ WIN_GL_CreateContext(_THIS, SDL_Window * window) return WIN_GLES_CreateContext(_this, window); #else - return SDL_SetError("SDL not configured with EGL support"); -#endif + SDL_SetError("SDL not configured with EGL support"); + return NULL; +#endif } if (_this->gl_config.share_with_current_context) {