From 1bb1b715442d50a105d31c6efb79b9352b87bdfe Mon Sep 17 00:00:00 2001 From: ramapcsx2 Date: Tue, 8 Dec 2009 17:32:25 +0000 Subject: [PATCH] GSdx: - Crashfix for Dual Hearts, fixes part 1 of Issue 314. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2330 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/GSdx/GSTextureCache.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/GSdx/GSTextureCache.cpp b/plugins/GSdx/GSTextureCache.cpp index 0d5d569776..59c189e764 100644 --- a/plugins/GSdx/GSTextureCache.cpp +++ b/plugins/GSdx/GSTextureCache.cpp @@ -259,6 +259,9 @@ GSTextureCache::Target* GSTextureCache::LookupTarget(const GIFRegTEX0& TEX0, int void GSTextureCache::InvalidateVideoMem(const GSOffset* o, const GSVector4i& rect, bool target) { + // Fixme. Crashes Dual Hearts, maybe others as well. Was fine before r1549. + if (!o) return; + uint32 bp = o->bp; uint32 bw = o->bw; uint32 psm = o->psm;