Commit d0375e62 authored by Sam Lantinga's avatar Sam Lantinga

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

parent 0de29d8f
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment