From 41679b20d1c71b96155be21fb1272854bac6ecec Mon Sep 17 00:00:00 2001 From: Tarnyko Date: Tue, 16 Dec 2014 02:01:03 +0100 Subject: Do not check gl_lib() without OpenGL support The gl_lib() function is not defined if we do not #USE_OPENGL, as can be seen in osdsdl.h. Building with NO_OPENGL=1 then breaks, unless we add this conditional #ifdef. Signed-off-by: Tarnyko --- src/osd/sdl/draw13.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/osd/sdl/draw13.c b/src/osd/sdl/draw13.c index 028c357a284..01dc42c43e6 100644 --- a/src/osd/sdl/draw13.c +++ b/src/osd/sdl/draw13.c @@ -479,8 +479,12 @@ int drawsdl2_init(running_machine &machine, sdl_draw_info *callbacks) expand_copy_info(blit_info_default); +#if USE_OPENGL // Load the GL library now - else MT will fail stemp = downcast(machine.options()).gl_lib(); +#else + stemp = NULL; +#endif if (stemp != NULL && strcmp(stemp, SDLOPTVAL_AUTO) == 0) stemp = NULL; -- cgit v1.2.3