Merge pull request #1735 from FlatOutPS2/W

GSdx: Prevent FMV crash
This commit is contained in:
Gregory Hainaut 2017-01-03 10:36:29 +01:00 committed by GitHub
commit b87881c91b
1 changed files with 1 additions and 1 deletions

View File

@ -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");