optimized font treatment on device reset
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@129 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
parent
655a149f2b
commit
7cb96f1071
|
@ -734,7 +734,10 @@ bool Direct3DDisplay::resetDevice()
|
|||
if( !pDevice ) return false;
|
||||
|
||||
HRESULT hr;
|
||||
destroyFont();
|
||||
if( pFont ) {
|
||||
// prepares font for rest
|
||||
pFont->OnLostDevice();
|
||||
}
|
||||
destroyTexture();
|
||||
prepareDisplayMode();
|
||||
|
||||
|
@ -751,7 +754,10 @@ bool Direct3DDisplay::resetDevice()
|
|||
return false;
|
||||
}
|
||||
|
||||
createFont();
|
||||
if( pFont ) {
|
||||
// re-aquires font resources
|
||||
pFont->OnResetDevice();
|
||||
}
|
||||
createTexture();
|
||||
setOption( _T("d3dFilter"), theApp.d3dFilter );
|
||||
failed = false;
|
||||
|
|
Loading…
Reference in New Issue