Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Better error messaging when SDL can't create a window surface.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 7, 2012
1 parent 9442a79 commit 3a0f7fc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions src/render/SDL_render.c
Expand Up @@ -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;

Expand Down
1 change: 1 addition & 0 deletions src/video/SDL_video.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 3a0f7fc

Please sign in to comment.