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;