summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRunitaiLinden <davep@lindenlab.com>2024-04-10 11:25:07 -0500
committerGitHub <noreply@github.com>2024-04-10 11:25:07 -0500
commit720f7d7ef5d06366cdbae51cd67a6883e994880b (patch)
tree6a69ae2d76a0d108befaced088909f9d68e3bb3d
parentb2a450a3087fb8393024876f6069a7cec9855bfd (diff)
Fix mac build (#1182)
* Fix mac build * Mac build take 2 * Mac build take 3
-rw-r--r--indra/newview/gltf/asset.cpp2
-rw-r--r--indra/newview/gltf/primitive.cpp16
-rw-r--r--indra/newview/gltfscenemanager.cpp3
3 files changed, 14 insertions, 7 deletions
diff --git a/indra/newview/gltf/asset.cpp b/indra/newview/gltf/asset.cpp
index 18f814c5b6..092b6e5d4b 100644
--- a/indra/newview/gltf/asset.cpp
+++ b/indra/newview/gltf/asset.cpp
@@ -24,6 +24,8 @@
* $/LicenseInfo$
*/
+#include "../llviewerprecompiledheaders.h"
+
#include "asset.h"
#include "llvolumeoctree.h"
diff --git a/indra/newview/gltf/primitive.cpp b/indra/newview/gltf/primitive.cpp
index dca3ccf706..71654dcfdd 100644
--- a/indra/newview/gltf/primitive.cpp
+++ b/indra/newview/gltf/primitive.cpp
@@ -9,7 +9,7 @@
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation;
- * version 2.1 of the License only.
+ * version 2.1 of the License only.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -24,34 +24,38 @@
* $/LicenseInfo$
*/
+#include "../llviewerprecompiledheaders.h"
+
#include "asset.h"
#include "../lltinygltfhelper.h"
using namespace LL::GLTF;
-#ifndef __PRETTY_FUNCTION__
-#define __PRETTY_FUNCTION__ __FUNCSIG__
+#ifdef _MSC_VER
+#define LL_FUNCSIG __FUNCSIG__
+#else
+#define LL_FUNCSIG __PRETTY_FUNCTION__
#endif
// copy one vec3 from src to dst
template<class S, class T>
void copyVec2(S* src, T& dst)
{
- LL_ERRS() << "TODO: implement " << __PRETTY_FUNCTION__ << LL_ENDL;
+ LL_ERRS() << "TODO: implement " << LL_FUNCSIG << LL_ENDL;
}
// copy one vec3 from src to dst
template<class S, class T>
void copyVec3(S* src, T& dst)
{
- LL_ERRS() << "TODO: implement " << __PRETTY_FUNCTION__ << LL_ENDL;
+ LL_ERRS() << "TODO: implement " << LL_FUNCSIG << LL_ENDL;
}
// copy one vec4 from src to dst
template<class S, class T>
void copyVec4(S* src, T& dst)
{
- LL_ERRS() << "TODO: implement " << __PRETTY_FUNCTION__ << LL_ENDL;
+ LL_ERRS() << "TODO: implement " << LL_FUNCSIG << LL_ENDL;
}
template<>
diff --git a/indra/newview/gltfscenemanager.cpp b/indra/newview/gltfscenemanager.cpp
index 429c9118f8..6c44b83646 100644
--- a/indra/newview/gltfscenemanager.cpp
+++ b/indra/newview/gltfscenemanager.cpp
@@ -24,6 +24,8 @@
* $/LicenseInfo$
*/
+#include "llviewerprecompiledheaders.h"
+
#include "gltfscenemanager.h"
#include "llviewermenufile.h"
#include "llappviewer.h"
@@ -329,7 +331,6 @@ void renderAssetDebug(LLViewerObject* obj, Asset* asset)
gGL.pushMatrix();
// get raycast in asset space
- LLMatrix4a asset_to_agent = getAssetToAgentTransform(obj);
LLMatrix4a agent_to_asset = getAgentToAssetTransform(obj);
LLVector4a start;