mirror of https://github.com/stella-emu/stella.git
Very small optimization for const char* instead of strings.
This commit is contained in:
parent
a618d27f01
commit
378829da5a
|
@ -144,11 +144,11 @@ void FrameBufferSDL2::queryHardware(vector<Common::Size>& fullscreenRes,
|
|||
|
||||
struct RenderName
|
||||
{
|
||||
string sdlName;
|
||||
string stellaName;
|
||||
const char* const sdlName;
|
||||
const char* const stellaName;
|
||||
};
|
||||
// Create name map for all currently known SDL renderers
|
||||
static const std::array<RenderName, 6> RENDERER_NAMES = {{
|
||||
static constexpr std::array<RenderName, 6> RENDERER_NAMES = {{
|
||||
{ "direct3d", "Direct3D" },
|
||||
{ "metal", "Metal" },
|
||||
{ "opengl", "OpenGL" },
|
||||
|
|
Loading…
Reference in New Issue