src/video/directfb/SDL_DirectFB_opengl.c
changeset 7037 3fedf1f25b94
parent 6885 700f1b25f77f
child 7191 75360622e65f
     1.1 --- a/src/video/directfb/SDL_DirectFB_opengl.c	Fri Mar 29 21:29:57 2013 -0400
     1.2 +++ b/src/video/directfb/SDL_DirectFB_opengl.c	Sun Mar 31 12:48:50 2013 -0400
     1.3 @@ -72,8 +72,7 @@
     1.4                                                 sizeof(struct
     1.5                                                        SDL_GLDriverData));
     1.6      if (!_this->gl_data) {
     1.7 -        SDL_OutOfMemory();
     1.8 -        return -1;
     1.9 +        return SDL_OutOfMemory();
    1.10      }
    1.11      _this->gl_data->initialized = 0;
    1.12  
    1.13 @@ -115,8 +114,7 @@
    1.14      SDL_DFB_DEBUG("Loadlibrary : %s\n", path);
    1.15  
    1.16      if (_this->gl_data->gl_active) {
    1.17 -        SDL_SetError("OpenGL context already created");
    1.18 -        return -1;
    1.19 +        return SDL_SetError("OpenGL context already created");
    1.20      }
    1.21  
    1.22  
    1.23 @@ -243,8 +241,7 @@
    1.24  int
    1.25  DirectFB_GL_SetSwapInterval(_THIS, int interval)
    1.26  {
    1.27 -    SDL_Unsupported();
    1.28 -    return -1;
    1.29 +    return SDL_Unsupported();
    1.30  }
    1.31  
    1.32  int