dont draw zero things

This commit is contained in:
Jasper St. Pierre
2026-03-12 23:35:11 -07:00
parent 6b2666878b
commit 3f548f2244
+5
View File
@@ -1018,6 +1018,11 @@ int dDlst_shadowPoly_c::set(cBgD_Vtx_t* i_vtx, u16 param_1, u16 param_2, u16 par
void dDlst_shadowPoly_c::draw() {
#if TARGET_PC
if (mCount == 0)
return;
#endif
dDlst_shadowTri_c* tri = getTri();
GXBegin(GX_TRIANGLES, GX_VTXFMT0, mCount * 3);