Skip to content

Commit 7c813fa

Browse files
committed
xrRenderPC_GL: fix possible crash
1 parent cc6b3e0 commit 7c813fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Layers/xrRenderPC_GL/rgl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,8 +597,9 @@ void CRender::add_Geometry(IRenderVisual* V) { add_Static((dxRender_Visual*)V, V
597597

598598
void CRender::add_StaticWallmark(ref_shader& S, const Fvector& P, float s, CDB::TRI* T, Fvector* verts)
599599
{
600+
VERIFY2 (T, "Invalid static wallmark triangle");
600601
if (T->suppress_wm) return;
601-
VERIFY2 (_valid(P) && _valid(s) && T && verts && (s>EPS_L), "Invalid static wallmark params");
602+
VERIFY2 (_valid(P) && _valid(s) && verts && (s>EPS_L), "Invalid static wallmark params");
602603
Wallmarks->AddStaticWallmark(T, verts, P, &*S, s);
603604
}
604605

0 commit comments

Comments
 (0)