Try hooking Reset. IDirect3DDevice9::Reset Method (Windows)
Call OnLostDevice and OnResetDevice in every iteration of Reset.
ID3DXFont::OnLostDevice Method (Windows)
ID3DXFont::OnResetDevice Method (Windows)
Try hooking Reset. IDirect3DDevice9::Reset Method (Windows)
Call OnLostDevice and OnResetDevice in every iteration of Reset.
ID3DXFont::OnLostDevice Method (Windows)
ID3DXFont::OnResetDevice Method (Windows)
It still wont work i think im doing something wrong:
Code:if( Directx.pFont == NULL ){ Directx.pFont->OnLostDevice(); Directx.pFont->OnResetDevice(); }else { Directx.DrawString(10, 22, D3DCOLOR_ARGB(255, 255, 255, 0), Directx.pFont, "Iopop9 MagicHack v.2"); Menu.RenderMenu(); }
PS. yes i have created a pFont
recreate your font after each game
Keep creating the font, might make the game lag though.
mine creates the font every frame, which caused the game to lag
notice how i said that in past tense
Sharing the solution would be nice.