mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 01:29:42 -06:00
Drop Host_GetRenderSurface and pass display to backend
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user