Prevent GE debugger crash on bad vertex addr.

This commit is contained in:
Unknown W. Brackets 2015-02-27 20:45:21 -08:00
parent b0ee6f22fb
commit 6294ecf64b

View file

@ -144,6 +144,9 @@ bool DrawEngineCommon::GetCurrentSimpleVertices(int count, std::vector<GPUDebugV
u16 indexLowerBound = 0;
u16 indexUpperBound = count - 1;
if (!Memory::IsValidAddress(gstate_c.vertexAddr))
return false;
bool savedVertexFullAlpha = gstate_c.vertexFullAlpha;
if ((gstate.vertType & GE_VTYPE_IDX_MASK) != GE_VTYPE_IDX_NONE) {