renderpass order fixes

This commit is contained in:
turanszkij
2019-10-29 00:53:23 +01:00
parent 82b73f536a
commit 5172b9ac06
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -133,6 +133,7 @@ void EditorComponent::ChangeRenderPath(RENDERPATH path)
renderPath->Initialize();
renderPath->Load();
renderPath->Update(0);
materialWnd.reset(new MaterialWindow(&GetGUI()));
postprocessWnd.reset(new PostprocessWindow(&GetGUI(), renderPath));
+2 -2
View File
@@ -11,8 +11,6 @@ using namespace wiGraphics;
void RenderPath3D::ResizeBuffers()
{
RenderPath2D::ResizeBuffers();
GraphicsDevice* device = wiRenderer::GetDevice();
FORMAT defaultTextureFormat = device->GetBackBufferFormat();
@@ -289,6 +287,8 @@ void RenderPath3D::ResizeBuffers()
device->CreateRenderPass(&desc, &renderpass_waterripples);
}
RenderPath2D::ResizeBuffers();
}
void RenderPath3D::Update(float dt)