Skip to content

Commit

Permalink
Fixes typo in EGL code (thanks jmcfarlane!)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabomdq committed Aug 26, 2013
1 parent 2abe45e commit ad20c80
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/video/SDL_egl.c
Expand Up @@ -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);
Expand All @@ -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;
Expand Down

0 comments on commit ad20c80

Please sign in to comment.