From 89e1386cafbcebb4fd51c93125b3ada82a0ba6bb Mon Sep 17 00:00:00 2001 From: cpasjuste Date: Wed, 29 Apr 2020 12:00:27 +0200 Subject: switch: remove unused renders --- src/render/rendererslistsdl2.h | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/src/render/rendererslistsdl2.h b/src/render/rendererslistsdl2.h index 259643295..fd1a84026 100644 --- a/src/render/rendererslistsdl2.h +++ b/src/render/rendererslistsdl2.h @@ -104,32 +104,26 @@ const int renderToIndex[] = // map for index to RenderType const RenderType indexToRender[] = { - RENDER_SOFTWARE, - RENDER_SDL2_DEFAULT, RENDER_GLES2_OPENGL }; const char *OPENGL_NAME[] = { - // TRANSLATORS: draw backend - N_("Software"), - // TRANSLATORS: draw backend - N_("SDL2 default"), // TRANSLATORS: draw backend N_("OpenGL ES 2") }; -const int renderModesListSize = 3; +const int renderModesListSize = 1; const int renderToIndex[] = { 0, // RENDER_SOFTWARE - 2, // RENDER_NORMAL_OPENGL - 2, // RENDER_SAFE_OPENGL - 2, // RENDER_GLES_OPENGL - 1, // RENDER_SDL2_DEFAULT - 2, // RENDER_MODERN_OPENGL - 2 // RENDER_GLES2_OPENGL + 0, // RENDER_NORMAL_OPENGL + 0, // RENDER_SAFE_OPENGL + 0, // RENDER_GLES_OPENGL + 0, // RENDER_SDL2_DEFAULT + 0, // RENDER_MODERN_OPENGL + 0 // RENDER_GLES2_OPENGL }; #else // ANDROID or nacl -- cgit v1.2.3-70-g09d2