Przeglądaj źródła

When binding scene color for rendering, properly load its contents since we intend to blend with existing contents

BearishSun 9 lat temu
rodzic
commit
6b87f9b649
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      Source/RenderBeast/Source/BsRenderTargets.cpp

+ 1 - 1
Source/RenderBeast/Source/BsRenderTargets.cpp

@@ -134,7 +134,7 @@ namespace bs
 	void RenderTargets::bindSceneColor(bool readOnlyDepthStencil)
 	{
 		RenderAPICore& rapi = RenderAPICore::instance();
-		rapi.setRenderTarget(mSceneColorRT, readOnlyDepthStencil);
+		rapi.setRenderTarget(mSceneColorRT, readOnlyDepthStencil, RT_COLOR0);
 
 		Rect2 area(0.0f, 0.0f, 1.0f, 1.0f);
 		rapi.setViewport(area);