From ad20c801cb7c9239a2316d4ea752a12216c6ff67 Mon Sep 17 00:00:00 2001 From: Gabriel Jacobo Date: Mon, 26 Aug 2013 14:23:18 -0300 Subject: [PATCH] Fixes typo in EGL code (thanks jmcfarlane!) --- src/video/SDL_egl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/video/SDL_egl.c b/src/video/SDL_egl.c index 2fbbc790d4cea..52251657243cc 100644 --- a/src/video/SDL_egl.c +++ b/src/video/SDL_egl.c @@ -332,8 +332,8 @@ SDL_EGL_SetSwapInterval(_THIS, int interval) { EGLBoolean status; - if (_this->egl_data) { - return SDL_SetError("OpenGL ES context not active"); + if (!_this->egl_data) { + return SDL_SetError("EGL not initialized"); } status = _this->egl_data->eglSwapInterval(_this->egl_data->egl_display, interval); @@ -348,8 +348,8 @@ SDL_EGL_SetSwapInterval(_THIS, int interval) int SDL_EGL_GetSwapInterval(_THIS) { - if (_this->egl_data) { - return SDL_SetError("OpenGL ES context not active"); + if (!_this->egl_data) { + return SDL_SetError("EGL not initialized"); } return _this->egl_data->egl_swapinterval;