mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 21:39:52 +00:00
Don't crash when framebuffer is a nullptr.
This commit is contained in:
parent
c60b14cab6
commit
97b467683a
@ -1005,6 +1005,10 @@ bool SetDebugTexture() {
|
||||
#endif
|
||||
|
||||
void TextureCache::SetTextureFramebuffer(TexCacheEntry *entry, VirtualFramebuffer *framebuffer) {
|
||||
if (framebuffer == nullptr) {
|
||||
return;
|
||||
}
|
||||
|
||||
framebuffer->usageFlags |= FB_USAGE_TEXTURE;
|
||||
bool useBufferedRendering = g_Config.iRenderingMode != FB_NON_BUFFERED_MODE;
|
||||
if (useBufferedRendering) {
|
||||
|
Loading…
Reference in New Issue
Block a user