Fixed bug 1344 - No OpenGL headers when compiling -> no working Software renderer at runtime neither
authorSam Lantinga <slouken@libsdl.org>
Sat, 07 Jan 2012 01:13:15 -0500
changeset 6163 aa4d1d639f2e
parent 6162 4c43c108a414
child 6164 67f122d8284f
Fixed bug 1344 - No OpenGL headers when compiling -> no working Software renderer at runtime neither Make sure we have at least one render driver.
src/render/SDL_render.c
--- a/src/render/SDL_render.c	Sat Jan 07 01:03:54 2012 -0500
+++ b/src/render/SDL_render.c	Sat Jan 07 01:13:15 2012 -0500
@@ -67,6 +67,9 @@
     &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;