diff --git a/wscript b/wscript index daae9568..a740ab22 100644 --- a/wscript +++ b/wscript @@ -240,7 +240,8 @@ def configure(conf): conf.options.GL4ES = True conf.options.GLES3COMPAT = True conf.options.GL = False - conf.define('XASH_SDLMAIN', 1) + if conf.env.HAVE_SDL2: + conf.define('XASH_SDLMAIN', 1) elif conf.env.MAGX: conf.options.SDL12 = True conf.options.NO_VGUI = True