Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Better error messaging when SDL can't create a window surface.

  • Loading branch information
slouken committed Jan 7, 2012
1 parent 9442a79 commit 3a0f7fc01cf7fa01ad81220a3539c8a0b7fdd48e
Showing with 1 addition and 3 deletions.
  1. +0 −3 src/render/SDL_render.c
  2. +1 −0 src/video/SDL_video.c
@@ -67,9 +67,6 @@ static const SDL_RenderDriver *render_drivers[] = {
&SW_RenderDriver
#endif /* !SDL_RENDER_DISABLED */
};
/* If this triggers you may need to install OpenGL development environment */
SDL_COMPILE_TIME_ASSERT(HAS_RENDER_DRIVERS, SDL_arraysize(render_drivers) > 0);

static char renderer_magic;
static char texture_magic;

@@ -239,6 +239,7 @@ SDL_CreateWindowTexture(_THIS, SDL_Window * window, Uint32 * format, void ** pix
}
}
if (!renderer) {
SDL_SetError("No hardware accelerated renderers available");
return -1;
}

0 comments on commit 3a0f7fc

Please sign in to comment.