mirror of
https://github.com/celisej567/source-engine.git
synced 2026-09-06 20:13:51 +03:00
misaligment fixes
This commit is contained in:
@@ -4099,7 +4099,9 @@ CBrushBatchRender::brushrender_t *CBrushBatchRender::FindOrCreateRenderBatch( mo
|
||||
surfaceList.Sort( SurfaceCmp );
|
||||
renderT.pPlanes = new cplane_t *[planeList.Count()];
|
||||
renderT.planeCount = planeList.Count();
|
||||
memcpy( renderT.pPlanes, planeList.Base(), sizeof(cplane_t *)*planeList.Count() );
|
||||
|
||||
if( planeList.Base() )
|
||||
memcpy( renderT.pPlanes, planeList.Base(), sizeof(cplane_t *)*planeList.Count() );
|
||||
renderT.pSurfaces = new brushrendersurface_t[surfaceList.Count()];
|
||||
renderT.surfaceCount = surfaceList.Count();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user