There is a memory leak

This commit is contained in:
Dynamitos committed 2023-11-30 11:51:53 +01:00
1 parent d1475d506e
commit 1493627ceb
20 files changed
+91 -102

No files matched your search

+1
View File
@@ -19,6 +19,7 @@ float4 fragmentMain(in FragmentParameter params) : SV_Target
{
MaterialParameter materialParams = params.getMaterialParameter();
LightingParameter lightingParams = params.getLightingParameter();
let brdf = pMaterial.prepare(materialParams);
float3 result = float3(0, 0, 0);
for(int i = 0; i < pLightEnv.numDirectionalLights; ++i)