mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +00:00
libretro: Fix opengl detectvsyncswapinterval crash
This commit is contained in:
parent
0b677dcfdf
commit
4cc75d91fe
@ -42,6 +42,10 @@ LibretroHWRenderContext::LibretroHWRenderContext(retro_hw_context_type context_t
|
|||||||
void LibretroHWRenderContext::ContextReset() {
|
void LibretroHWRenderContext::ContextReset() {
|
||||||
INFO_LOG(G3D, "Context reset");
|
INFO_LOG(G3D, "Context reset");
|
||||||
|
|
||||||
|
if (gpu && Libretro::useEmuThread) {
|
||||||
|
Libretro::EmuThreadPause();
|
||||||
|
}
|
||||||
|
|
||||||
if (gpu) {
|
if (gpu) {
|
||||||
gpu->DeviceLost();
|
gpu->DeviceLost();
|
||||||
}
|
}
|
||||||
@ -57,6 +61,10 @@ void LibretroHWRenderContext::ContextReset() {
|
|||||||
if (gpu) {
|
if (gpu) {
|
||||||
gpu->DeviceRestore(draw_);
|
gpu->DeviceRestore(draw_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (gpu && Libretro::useEmuThread) {
|
||||||
|
Libretro::EmuThreadStart();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void LibretroHWRenderContext::ContextDestroy() {
|
void LibretroHWRenderContext::ContextDestroy() {
|
||||||
|
Loading…
Reference in New Issue
Block a user