gl: vmu not showing and memory corruption
Fix vmu not displayed Memory corruption when restarting gl driver (android)
This commit is contained in:
parent
0bd88fc9d9
commit
b2b860bb8e
|
@ -50,8 +50,8 @@ OpenGLDriver::OpenGLDriver()
|
|||
for (auto& tex : vmu_lcd_tex_ids)
|
||||
tex = ImTextureID();
|
||||
ImGui_ImplOpenGL3_Init();
|
||||
EventManager::listen(Event::Resume, emuEventCallback, this);
|
||||
EventManager::listen(Event::Pause, emuEventCallback, this);
|
||||
EventManager::listen(Event::Start, emuEventCallback, this);
|
||||
EventManager::listen(Event::Terminate, emuEventCallback, this);
|
||||
}
|
||||
|
||||
OpenGLDriver::~OpenGLDriver()
|
||||
|
|
|
@ -53,10 +53,10 @@ private:
|
|||
{
|
||||
switch (event)
|
||||
{
|
||||
case Event::Resume:
|
||||
case Event::Start:
|
||||
gameStarted = true;
|
||||
break;
|
||||
case Event::Pause:
|
||||
case Event::Terminate:
|
||||
gameStarted = false;
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue