Fix incorrect skybox cubemap caching dirty interval

This commit is contained in:
2022-11-01 23:15:43 +01:00
parent f37ed16270
commit 86b6b20200
+1
View File
@@ -288,6 +288,7 @@ GPUTextureView* GBufferPass::RenderSkybox(RenderContext& renderContext, GPUConte
{
// Initialize skybox texture
auto& skyboxData = *renderContext.Buffers->GetCustomBuffer<SkyboxCustomBuffer>(TEXT("Skybox"));
skyboxData.LastFrameUsed = Engine::FrameCount;
bool dirty = false;
const int32 resolution = 16;
if (!skyboxData.Skybox)