Don't crash when framebuffer is a nullptr.

This commit is contained in:
The Dax 2014-07-09 06:11:41 -04:00
parent c60b14cab6
commit 97b467683a

View File

@ -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) {