mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-27 07:20:49 +00:00
Fix crash when pressing F12 in software mode.
This commit is contained in:
parent
fe368caa2d
commit
14900d4c1b
@ -2450,7 +2450,9 @@ bool GPUCommon::GetCurrentStencilbuffer(GPUDebugBuffer &buffer) {
|
||||
}
|
||||
|
||||
bool GPUCommon::GetOutputFramebuffer(GPUDebugBuffer &buffer) {
|
||||
return framebufferManager_->GetOutputFramebuffer(buffer);
|
||||
// framebufferManager_ can be null here when taking screens in software rendering mode.
|
||||
// TODO: Actually grab the framebuffer anyway.
|
||||
return framebufferManager_ ? framebufferManager_->GetOutputFramebuffer(buffer) : false;
|
||||
}
|
||||
|
||||
bool GPUCommon::GetCurrentTexture(GPUDebugBuffer &buffer, int level) {
|
||||
|
Loading…
Reference in New Issue
Block a user