mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
VideoBackendBase: Store video backends as unique_ptr
This commit is contained in:
parent
3b23eb24c4
commit
1d6ee140f0
6 changed files with 40 additions and 34 deletions
|
@ -4,6 +4,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
@ -99,5 +100,5 @@ protected:
|
|||
bool m_invalid = false;
|
||||
};
|
||||
|
||||
extern std::vector<VideoBackendBase*> g_available_video_backends;
|
||||
extern std::vector<std::unique_ptr<VideoBackendBase>> g_available_video_backends;
|
||||
extern VideoBackendBase* g_video_backend;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue