Browse Source

Refactor: Removing dead code in tiled deferred lighting renderer node

BearishSun 8 years ago
parent
commit
f7d531db2f
1 changed files with 0 additions and 3 deletions
  1. 0 3
      Source/RenderBeast/BsRenderCompositor.cpp

+ 0 - 3
Source/RenderBeast/BsRenderCompositor.cpp

@@ -542,9 +542,6 @@ namespace bs { namespace ct
 		gbuffer.roughMetal = gbufferNode->roughMetalTex->texture;
 		gbuffer.depth = sceneDepthNode->depthTex->texture;
 
-		RenderAPI& rapi = RenderAPI::instance();
-		rapi.setRenderTarget(output->renderTarget, FBT_DEPTH | FBT_STENCIL, RT_COLOR0 | RT_DEPTH_STENCIL);
-
 		const VisibleLightData& lightData = inputs.viewGroup.getVisibleLightData();
 		SPtr<GpuBuffer> flattenedLightAccumBuffer;
 		if (output->flattenedLightAccumBuffer)