浏览代码

Fixed postprocessing viewport size when using postprocess-defined rendertargets.

Lasse Öörni 14 年之前
父节点
当前提交
708b8b5d48
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Engine/Graphics/View.cpp

+ 1 - 0
Engine/Graphics/View.cpp

@@ -1373,6 +1373,7 @@ void View::RunPostProcesses()
                 
                 graphics_->SetRenderTarget(0, rt);
                 graphics_->SetDepthStencil(GetDepthStencil(rt));
+                graphics_->SetViewport(IntRect(0, 0, rt->GetWidth(), rt->GetHeight()));
             }
             
             // Set shaders, shader parameters and textures