Added a generic memory allocator for memory needed for a frame
This commit is contained in:
parent
601ddb270d
commit
e02aece40a
4 changed files with 78 additions and 22 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue