diff --git a/Source/Plugins/Plugin_VideoOGL/Src/SConscript b/Source/Plugins/Plugin_VideoOGL/Src/SConscript index c2f07d7c31..c76b1da61f 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/SConscript +++ b/Source/Plugins/Plugin_VideoOGL/Src/SConscript @@ -98,19 +98,21 @@ conf.Define('HAVE_XXF86VM', gfxenv['HAVE_XXF86VM']) conf.Finish() -if gfxenv['HAVE_XXF86VM']: - files += [ - 'X11Window.cpp', - ] - -if gfxenv['HAVE_SDL']: - files += [ - 'SDLWindow.cpp', - ] -if gfxenv['USE_WX']: - files += [ - 'WXGLWindow.cpp', - ] +if gfxenv['GLTEST']: + if gfxenv['HAVE_XXF86VM']: + files += [ + 'X11Window.cpp', + ] + + if gfxenv['HAVE_SDL']: + files += [ + 'SDLWindow.cpp', + ] + if gfxenv['USE_WX']: + files += [ + 'WXGLWindow.cpp', + ] + # Sanity check if gfxenv['USE_WX'] and not gfxenv['HAVE_WX']: print "Must have wx to use wxgl"