HostDisplay: Fix cursor texture leak
This commit is contained in:
1 parent
9e9b0e223f
commit
befbc7bc2e
6 files changed
+14
-1
No files matched your search
@@ -32,6 +32,11 @@ RenderAPI HostDisplay::GetPreferredAPI()
|
||||
#endif
|
||||
}
|
||||
|
||||
void HostDisplay::DestroyResources()
|
||||
{
|
||||
m_cursor_texture.reset();
|
||||
}
|
||||
|
||||
bool HostDisplay::UpdateTexture(GPUTexture* texture, u32 x, u32 y, u32 width, u32 height, const void* data, u32 pitch)
|
||||
{
|
||||
void* map_ptr;
|
||||
|
||||
@@ -81,7 +81,7 @@ public:
|
||||
virtual bool SetFullscreen(bool fullscreen, u32 width, u32 height, float refresh_rate) = 0;
|
||||
virtual AdapterAndModeList GetAdapterAndModeList() = 0;
|
||||
virtual bool CreateResources() = 0;
|
||||
virtual void DestroyResources() = 0;
|
||||
virtual void DestroyResources();
|
||||
|
||||
virtual bool SetPostProcessingChain(const std::string_view& config) = 0;
|
||||
|
||||
|
||||
Reference in new issue
Block a user