Skip to content

Commit

Permalink
xrRenderPC_GL: fix possible crash
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleivg committed Nov 6, 2018
1 parent cc6b3e0 commit 7c813fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Layers/xrRenderPC_GL/rgl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -597,8 +597,9 @@ void CRender::add_Geometry(IRenderVisual* V) { add_Static((dxRender_Visual*)V, V

void CRender::add_StaticWallmark(ref_shader& S, const Fvector& P, float s, CDB::TRI* T, Fvector* verts)
{
VERIFY2 (T, "Invalid static wallmark triangle");
if (T->suppress_wm) return;
VERIFY2 (_valid(P) && _valid(s) && T && verts && (s>EPS_L), "Invalid static wallmark params");
VERIFY2 (_valid(P) && _valid(s) && verts && (s>EPS_L), "Invalid static wallmark params");
Wallmarks->AddStaticWallmark(T, verts, P, &*S, s);
}

Expand Down

0 comments on commit 7c813fa

Please sign in to comment.