mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-28 07:50:49 +00:00
OpenGL: Disable the mapped buffer strategy for Adreno (Qualcomm).
It's a race during shutdown between the EmuThread writing commands, and the render thread which just lost the buffer.
This commit is contained in:
parent
3e1197f5f3
commit
c509650bec
@ -112,9 +112,14 @@ void GLRenderManager::ThreadStart(Draw::DrawContext *draw) {
|
||||
bufferStrategy_ = GLBufferStrategy::FRAME_UNMAP;
|
||||
break;
|
||||
|
||||
case GPU_VENDOR_QUALCOMM:
|
||||
bufferStrategy_ = GLBufferStrategy::FLUSH_INVALIDATE_UNMAP;
|
||||
break;
|
||||
// Temporarily disabled because it doesn't work with task switching on Android.
|
||||
// The mapped buffer seems to just be pulled out like a rug from under us, crashing
|
||||
// as soon as any write happens, which can happen during shutdown since we write from the
|
||||
// Emu thread which may not yet have shut down. There may be solutions to this, but for now,
|
||||
// disable this strategy to avoid crashing.
|
||||
//case GPU_VENDOR_QUALCOMM:
|
||||
// bufferStrategy_ = GLBufferStrategy::FLUSH_INVALIDATE_UNMAP;
|
||||
// break;
|
||||
|
||||
default:
|
||||
bufferStrategy_ = GLBufferStrategy::SUBDATA;
|
||||
|
Loading…
Reference in New Issue
Block a user