Compilation errors fixing
This commit is contained in:
@@ -279,7 +279,7 @@ void Asset::OnDeleteObject()
|
||||
|
||||
const bool wasMarkedToDelete = _deleteFileOnUnload != 0;
|
||||
#if USE_EDITOR
|
||||
const String path = wasMarkedToDelete ? GetPath() : String::Empty;
|
||||
const String path = wasMarkedToDelete ? GetPath() : StringView::Empty;
|
||||
#endif
|
||||
const Guid id = GetID();
|
||||
|
||||
|
||||
@@ -467,7 +467,7 @@ void BinaryAsset::OnDeleteObject()
|
||||
StringView BinaryAsset::GetPath() const
|
||||
{
|
||||
#if USE_EDITOR
|
||||
return Storage ? Storage->GetPath() : StringView::Empty;
|
||||
return Storage ? StringView(Storage->GetPath()) : StringView::Empty;
|
||||
#else
|
||||
// In build all assets are packed into packages so use ID for original path lookup
|
||||
return Content::GetRegistry()->GetEditorAssetPath(_id);
|
||||
|
||||
@@ -1838,7 +1838,7 @@ void LinuxPlatform::Sleep(int32 milliseconds)
|
||||
|
||||
void LinuxPlatform::Yield()
|
||||
{
|
||||
pthread_yield();
|
||||
sched_yield();
|
||||
}
|
||||
|
||||
double LinuxPlatform::GetTimeSeconds()
|
||||
|
||||
4
Source/ThirdParty/tracy/tracy.Build.cs
vendored
4
Source/ThirdParty/tracy/tracy.Build.cs
vendored
@@ -78,7 +78,11 @@ public class tracy : ThirdPartyModule
|
||||
if (graphicsOptions.PrivateDependencies.Contains("GraphicsDeviceDX12"))
|
||||
options.PrivateDefinitions.Add("TRACY_GPU_D3D12");
|
||||
if (graphicsOptions.PrivateDependencies.Contains("GraphicsDeviceVulkan"))
|
||||
{
|
||||
options.PrivateDefinitions.Add("TRACY_GPU_VULKAN");
|
||||
if (VulkanSdk.Instance.TryGetIncludePath(options.Platform.Target, out var includesFolderPath))
|
||||
options.PrivateIncludePaths.Add(includesFolderPath);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user