mirror of
https://github.com/nillerusr/source-engine.git
synced 2024-12-22 14:16:50 +00:00
android: fix black screen after minimizing window in materialsystem queue mode
This commit is contained in:
parent
601cfff164
commit
5ea9937457
@ -263,7 +263,6 @@ GameMessageHandler_t g_GameMessageHandlers[] =
|
|||||||
{ IE_Quit, &CGame::HandleMsg_Close },
|
{ IE_Quit, &CGame::HandleMsg_Close },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
void CGame::AppActivate( bool fActive )
|
void CGame::AppActivate( bool fActive )
|
||||||
{
|
{
|
||||||
// If text mode, force it to be active.
|
// If text mode, force it to be active.
|
||||||
@ -299,8 +298,18 @@ void CGame::AppActivate( bool fActive )
|
|||||||
// Clear keyboard states (should be cleared already but...)
|
// Clear keyboard states (should be cleared already but...)
|
||||||
// VGui_ActivateMouse will reactivate the mouse soon.
|
// VGui_ActivateMouse will reactivate the mouse soon.
|
||||||
ClearIOStates();
|
ClearIOStates();
|
||||||
|
|
||||||
UpdateMaterialSystemConfig();
|
UpdateMaterialSystemConfig();
|
||||||
|
|
||||||
|
#ifdef ANDROID
|
||||||
|
ConVarRef mat_queue_mode( "mat_queue_mode" );
|
||||||
|
|
||||||
|
// Hack to reset internal queue buffers
|
||||||
|
int nSavedQueueMode = mat_queue_mode.GetInt();
|
||||||
|
mat_queue_mode.SetValue( 0 );
|
||||||
|
materials->BeginFrame( host_frametime );
|
||||||
|
materials->EndFrame();
|
||||||
|
mat_queue_mode.SetValue( nSavedQueueMode );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user