Make default graphics backend not show up as empty

Fixes https://bugs.dolphin-emu.org/issues/12245.

I considered making a change to DolphinQt instead of
the core, but then additional effort would've been
required to add the same fix to the Android GUI once
we start using the new config system there.
This commit is contained in:
JosJuice
2020-09-06 12:56:45 +02:00
parent db067104ed
commit 6eefc3c524
13 changed files with 37 additions and 8 deletions

View File

@ -13,6 +13,7 @@ namespace OGL
{
class VideoBackend : public VideoBackendBase
{
public:
bool Initialize(const WindowSystemInfo& wsi) override;
void Shutdown() override;
@ -21,6 +22,8 @@ class VideoBackend : public VideoBackendBase
void InitBackendInfo() override;
static constexpr const char* NAME = "OGL";
private:
bool InitializeGLExtensions(GLContext* context);
bool FillBackendInfo();

View File

@ -62,7 +62,7 @@ namespace OGL
{
std::string VideoBackend::GetName() const
{
return "OGL";
return NAME;
}
std::string VideoBackend::GetDisplayName() const