Mercurial > sdl-ios-xcode
diff src/video/SDL_video.c @ 11:7b94b6379341
*** empty log message ***
author | Sam Lantinga <slouken@lokigames.com> |
---|---|
date | Sat, 28 Apr 2001 18:57:18 +0000 |
parents | 2c4a3a759c66 |
children | c3e9d4a623c1 |
line wrap: on
line diff
--- a/src/video/SDL_video.c Sat Apr 28 18:56:58 2001 +0000 +++ b/src/video/SDL_video.c Sat Apr 28 18:57:18 2001 +0000 @@ -1351,8 +1351,10 @@ if ( video->GL_GetAttribute ) { retval = this->GL_GetAttribute(this, attr, value); + } else { + *value = 0; + SDL_SetError("GL_GetAttribute not supported"); } - return retval; } @@ -1680,10 +1682,10 @@ { SDL_VideoDevice *video = current_video; - /* If the video isn't initialized yet, we can't do anything */ - if ( ! video ) { - return SDL_GRAB_OFF; - } + /* If the video isn't initialized yet, we can't do anything */ + if ( ! video ) { + return SDL_GRAB_OFF; + } /* Return the current mode on query */ if ( mode == SDL_GRAB_QUERY ) {