From 048b657c8f01a31997d76b6bfd11de84a53c6467 Mon Sep 17 00:00:00 2001 From: FlatOutPS2 Date: Mon, 2 Jan 2017 21:14:54 +0100 Subject: [PATCH] GSdx: Prevent FMV crash Fixes FMV crashing PCSX2 in The Simpsons: Road Rage. --- plugins/GSdx/GSRendererHW.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/GSdx/GSRendererHW.cpp b/plugins/GSdx/GSRendererHW.cpp index 2f60702da7..81940b093e 100644 --- a/plugins/GSdx/GSRendererHW.cpp +++ b/plugins/GSdx/GSRendererHW.cpp @@ -1016,7 +1016,7 @@ void GSRendererHW::OI_GsMemClear() bool GSRendererHW::OI_BlitFMV(GSTextureCache::Target* _rt, GSTextureCache::Source* tex, const GSVector4i& r_draw) { - if (r_draw.w > 1024 && (m_vt.m_primclass == GS_SPRITE_CLASS) && (m_vertex.next == 2) && PRIM->TME && !PRIM->ABE && tex && !tex->m_target) { + if (r_draw.w > 1024 && (m_vt.m_primclass == GS_SPRITE_CLASS) && (m_vertex.next == 2) && PRIM->TME && !PRIM->ABE && tex && !tex->m_target && m_context->TEX0.TBW > 0) { GL_PUSH("OI_BlitFMV"); GL_INS("OI_BlitFMV");