summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/tabs')
-rw-r--r--src/gui/widgets/tabs/setup_perfomance.cpp6
-rw-r--r--src/gui/widgets/tabs/setup_perfomance.h2
2 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/widgets/tabs/setup_perfomance.cpp b/src/gui/widgets/tabs/setup_perfomance.cpp
index 664183276..9eaca8e85 100644
--- a/src/gui/widgets/tabs/setup_perfomance.cpp
+++ b/src/gui/widgets/tabs/setup_perfomance.cpp
@@ -53,8 +53,10 @@ static const char *const texturesList[] =
Setup_Perfomance::Setup_Perfomance(const Widget2 *const widget) :
SetupTabScroll(widget),
- mTexturesList(new NamesModel),
- mSdlDriversList(new NamesModel)
+#ifdef USE_SDL2
+ mSdlDriversList(new NamesModel),
+#endif // USE_SDL2
+ mTexturesList(new NamesModel)
{
// TRANSLATORS: settings tab name
setName(_("Performance"));
diff --git a/src/gui/widgets/tabs/setup_perfomance.h b/src/gui/widgets/tabs/setup_perfomance.h
index a4043ab4e..95030a8e5 100644
--- a/src/gui/widgets/tabs/setup_perfomance.h
+++ b/src/gui/widgets/tabs/setup_perfomance.h
@@ -37,10 +37,10 @@ class Setup_Perfomance final : public SetupTabScroll
~Setup_Perfomance();
private:
- NamesModel *mTexturesList;
#ifdef USE_SDL2
NamesModel *mSdlDriversList;
#endif // USE_SDL2
+ NamesModel *mTexturesList;
};
#endif // GUI_WIDGETS_TABS_SETUP_PERFOMANCE_H