Added a generic memory allocator for memory needed for a frame

This commit is contained in:
Magnus Norddahl 2017-01-15 21:45:21 +01:00
commit e02aece40a
4 changed files with 78 additions and 22 deletions

View file

@ -65,10 +65,7 @@ namespace swrenderer
}
if (!found)
{
visplane_light *newlight = R_NewPlaneLight();
if (!newlight)
return;
visplane_light *newlight = RenderMemory::NewObject<visplane_light>();
newlight->next = lights;
newlight->lightsource = node->lightsource;
lights = newlight;