mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-15 22:12:05 +00:00
Drop Host_GetRenderSurface and pass display to backend
This commit is contained in:
parent
134d967be2
commit
a3961750a7
35 changed files with 129 additions and 124 deletions
|
@ -54,7 +54,7 @@ void VideoBackend::InitBackendInfo()
|
|||
g_Config.backend_info.AAModes = {1};
|
||||
}
|
||||
|
||||
bool VideoBackend::Initialize(void* window_handle)
|
||||
bool VideoBackend::Initialize(void* display_handle, void* window_handle)
|
||||
{
|
||||
InitializeShared();
|
||||
|
||||
|
@ -80,4 +80,4 @@ void VideoBackend::Shutdown()
|
|||
|
||||
ShutdownShared();
|
||||
}
|
||||
}
|
||||
} // namespace Null
|
||||
|
|
|
@ -24,6 +24,11 @@ Renderer::~Renderer()
|
|||
UpdateActiveConfig();
|
||||
}
|
||||
|
||||
bool Renderer::IsHeadless() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
std::unique_ptr<AbstractTexture> Renderer::CreateTexture(const TextureConfig& config)
|
||||
{
|
||||
return std::make_unique<NullTexture>(config);
|
||||
|
|
|
@ -14,6 +14,8 @@ public:
|
|||
Renderer();
|
||||
~Renderer() override;
|
||||
|
||||
bool IsHeadless() const override;
|
||||
|
||||
std::unique_ptr<AbstractTexture> CreateTexture(const TextureConfig& config) override;
|
||||
std::unique_ptr<AbstractStagingTexture>
|
||||
CreateStagingTexture(StagingTextureType type, const TextureConfig& config) override;
|
||||
|
|
|
@ -11,7 +11,7 @@ namespace Null
|
|||
{
|
||||
class VideoBackend : public VideoBackendBase
|
||||
{
|
||||
bool Initialize(void* window_handle) override;
|
||||
bool Initialize(void* display_handle, void* window_handle) override;
|
||||
void Shutdown() override;
|
||||
|
||||
std::string GetName() const override { return "Null"; }
|
||||
|
@ -22,4 +22,4 @@ class VideoBackend : public VideoBackendBase
|
|||
}
|
||||
void InitBackendInfo() override;
|
||||
};
|
||||
}
|
||||
} // namespace Null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue