mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2025-01-12 02:19:31 +08:00
Fix overlay gpu memory leak in some games.
This commit is contained in:
parent
3abc5976e0
commit
b72b4da8fb
@ -346,7 +346,7 @@ static void ImGui_ImplDX10_CreateFontsTexture()
|
||||
desc.MipLODBias = 0.f;
|
||||
desc.ComparisonFunc = D3D10_COMPARISON_ALWAYS;
|
||||
desc.MinLOD = 0.f;
|
||||
desc.MaxLOD = 0.f;
|
||||
desc.MaxLOD = D3D10_FLOAT32_MAX;
|
||||
bd->pd3dDevice->CreateSamplerState(&desc, &bd->pFontSampler);
|
||||
}
|
||||
}
|
||||
|
@ -358,7 +358,7 @@ static void ImGui_ImplDX11_CreateFontsTexture()
|
||||
desc.MipLODBias = 0.f;
|
||||
desc.ComparisonFunc = D3D11_COMPARISON_ALWAYS;
|
||||
desc.MinLOD = 0.f;
|
||||
desc.MaxLOD = 0.f;
|
||||
desc.MaxLOD = D3D11_FLOAT32_MAX;
|
||||
bd->pd3dDevice->CreateSamplerState(&desc, &bd->pFontSampler);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user