gl: vmu not showing and memory corruption

Fix vmu not displayed
Memory corruption when restarting gl driver (android)
This commit is contained in:
Flyinghead 2022-10-20 09:49:53 +02:00
parent 0bd88fc9d9
commit b2b860bb8e
2 changed files with 4 additions and 4 deletions

View File

@ -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()

View File

@ -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: