mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-05 15:48:51 +00:00
D3D11: Make stateman a unique_ptr
This commit is contained in:
parent
3b86c93285
commit
d0d010f854
3 changed files with 5 additions and 5 deletions
|
@ -156,14 +156,13 @@ bool Create(u32 adapter_index, bool enable_debug_layer)
|
|||
g_Config.backend_info.bSupportsGSInstancing = shader_model_5_supported;
|
||||
g_Config.backend_info.bSupportsSSAA = shader_model_5_supported;
|
||||
|
||||
stateman = new StateManager();
|
||||
stateman = std::make_unique<StateManager>();
|
||||
return true;
|
||||
}
|
||||
|
||||
void Destroy()
|
||||
{
|
||||
delete stateman;
|
||||
stateman = nullptr;
|
||||
stateman.reset();
|
||||
|
||||
context->ClearState();
|
||||
context->Flush();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue