1
0
Fork 0
mirror of https://gitlab.com/Mr_Goldberg/goldberg_emulator.git synced 2024-11-14 10:50:13 +01:00

Fix overlay gpu memory leak in some games.

This commit is contained in:
Mr_Goldberg 2022-08-11 20:52:26 -04:00
parent 3abc5976e0
commit b72b4da8fb
No known key found for this signature in database
GPG key ID: 8597D87419DEF278
2 changed files with 2 additions and 2 deletions

View file

@ -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);
}
}

View file

@ -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);
}
}