1.1 --- a/src/video/SDL_egl.c Sun Aug 25 21:28:03 2013 -0400
1.2 +++ b/src/video/SDL_egl.c Mon Aug 26 14:23:18 2013 -0300
1.3 @@ -332,8 +332,8 @@
1.4 {
1.5 EGLBoolean status;
1.6
1.7 - if (_this->egl_data) {
1.8 - return SDL_SetError("OpenGL ES context not active");
1.9 + if (!_this->egl_data) {
1.10 + return SDL_SetError("EGL not initialized");
1.11 }
1.12
1.13 status = _this->egl_data->eglSwapInterval(_this->egl_data->egl_display, interval);
1.14 @@ -348,8 +348,8 @@
1.15 int
1.16 SDL_EGL_GetSwapInterval(_THIS)
1.17 {
1.18 - if (_this->egl_data) {
1.19 - return SDL_SetError("OpenGL ES context not active");
1.20 + if (!_this->egl_data) {
1.21 + return SDL_SetError("EGL not initialized");
1.22 }
1.23
1.24 return _this->egl_data->egl_swapinterval;