fix bugs when changing 3D renderer with no game loaded
This commit is contained in:
parent
6de19645f8
commit
5487a4e71c
|
@ -709,7 +709,6 @@ int EmuThreadFunc(void* burp)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
GPU3D::InitRenderer(false);
|
GPU3D::InitRenderer(false);
|
||||||
GPU::SetDisplaySettings(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Touching = false;
|
Touching = false;
|
||||||
|
@ -1389,6 +1388,14 @@ void OnAreaResize(uiAreaHandler* handler, uiArea* area, int width, int height)
|
||||||
|
|
||||||
void Run()
|
void Run()
|
||||||
{
|
{
|
||||||
|
if (GPU3D::Renderer != Config::_3DRenderer)
|
||||||
|
{
|
||||||
|
if (Screen_UseGL) uiGLMakeContextCurrent(GLContext);
|
||||||
|
GPU3D::DeInitRenderer();
|
||||||
|
GPU3D::InitRenderer(Screen_UseGL);
|
||||||
|
if (Screen_UseGL) uiGLMakeContextCurrent(NULL);
|
||||||
|
}
|
||||||
|
|
||||||
EmuRunning = 1;
|
EmuRunning = 1;
|
||||||
RunningSomething = true;
|
RunningSomething = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue