Better error messaging when SDL can't create a window surface.
authorSam Lantinga <slouken@libsdl.org>
Sat, 07 Jan 2012 14:21:22 -0500
changeset 61745f221b7a5952
parent 6172 062ce1e65f6e
child 6175 42c40787f382
Better error messaging when SDL can't create a window surface.
src/render/SDL_render.c
src/video/SDL_video.c
     1.1 --- a/src/render/SDL_render.c	Sat Jan 07 03:22:47 2012 -0500
     1.2 +++ b/src/render/SDL_render.c	Sat Jan 07 14:21:22 2012 -0500
     1.3 @@ -67,9 +67,6 @@
     1.4      &SW_RenderDriver
     1.5  #endif /* !SDL_RENDER_DISABLED */
     1.6  };
     1.7 -/* If this triggers you may need to install OpenGL development environment */
     1.8 -SDL_COMPILE_TIME_ASSERT(HAS_RENDER_DRIVERS, SDL_arraysize(render_drivers) > 0);
     1.9 -
    1.10  static char renderer_magic;
    1.11  static char texture_magic;
    1.12  
     2.1 --- a/src/video/SDL_video.c	Sat Jan 07 03:22:47 2012 -0500
     2.2 +++ b/src/video/SDL_video.c	Sat Jan 07 14:21:22 2012 -0500
     2.3 @@ -239,6 +239,7 @@
     2.4              }
     2.5          }
     2.6          if (!renderer) {
     2.7 +            SDL_SetError("No hardware accelerated renderers available");
     2.8              return -1;
     2.9          }
    2.10