gsdx hw: avoid a null deferenced false-positive in coverity

It is a false positive because it supposes that PRIM->TME is both true and false.

It is the first Schrodinger's variable ;)
This commit is contained in:
Gregory Hainaut 2016-08-12 23:02:06 +02:00
parent 2d2fdd6e44
commit dc2864ad7a
1 changed files with 1 additions and 1 deletions

View File

@ -940,7 +940,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) {
if (r_draw.w > 1024 && (m_vt.m_primclass == GS_SPRITE_CLASS) && (m_vertex.next == 2) && PRIM->TME && !PRIM->ABE && tex) {
GL_PUSH("OI_BlitFMV");
GL_INS("OI_BlitFMV");