Fix lightmaps baking on D3D12

This commit is contained in:
Wojtek Figat
2021-06-07 13:09:52 +02:00
parent 3872d74bd2
commit 36c4c3c86a
3 changed files with 10 additions and 3 deletions

View File

@@ -9,6 +9,8 @@
#if DEBUG_EXPORT_LIGHTMAPS_PREVIEW || DEBUG_EXPORT_CACHE_PREVIEW || DEBUG_EXPORT_HEMISPHERES_PREVIEW
#include "Engine/Engine/Globals.h"
String GetDebugDataPath()
{
auto result = Globals::ProjectCacheFolder / TEXT("ShadowsOfMordor_Debug");
@@ -165,7 +167,7 @@ void ShadowsOfMordor::Builder::downloadDebugHemisphereAtlases(SceneBuildCache* s
GPUTexture* atlas = DebugExportHemispheresAtlases[atlasIndex];
TextureData textureData;
if (atlas->DownloadData(&textureData))
if (atlas->DownloadData(textureData))
{
LOG(Error, "Cannot download hemispheres atlas data.");
continue;