Skip to content

Commit a526b42

Browse files
committed
Merge pull request ocornut#290 from cmaughan/master
Examples: DirectX11: Clear font texture view pointer to ensure Release() doesn't get called twice
2 parents 3aca446 + d667de9 commit a526b42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/directx11_example/imgui_impl_dx11.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ void ImGui_ImplDX11_InvalidateDeviceObjects()
402402
return;
403403

404404
if (g_pFontSampler) { g_pFontSampler->Release(); g_pFontSampler = NULL; }
405-
if (g_pFontTextureView) { g_pFontTextureView->Release(); ImGui::GetIO().Fonts->TexID = 0; }
405+
if (g_pFontTextureView) { g_pFontTextureView->Release(); g_pFontTextureView = NULL; ImGui::GetIO().Fonts->TexID = 0; }
406406
if (g_pIB) { g_pIB->Release(); g_pIB = NULL; }
407407
if (g_pVB) { g_pVB->Release(); g_pVB = NULL; }
408408

0 commit comments

Comments
 (0)