Skip to content

Commit

Permalink
Fixed build when MATH_GRAPHICSENGINE_INTEROP is not defined and MATH_…
Browse files Browse the repository at this point in the history
…CONTAINERLIB_SUPPORT is not defined.
  • Loading branch information
juj committed Jun 12, 2012
1 parent 59ccea8 commit 41649ff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Geometry/Frustum.cpp
Expand Up @@ -34,7 +34,7 @@
#include "Math/float4.h"
#include "Math/Quat.h"

#ifdef MATH_TINYXML_INTEROP
#if defined(MATH_TINYXML_INTEROP) && defined(MATH_CONTAINERLIB_SUPPORT)
#include "Container/UString.h"
#endif

Expand Down Expand Up @@ -131,7 +131,7 @@ float4x4 Frustum::ProjectionMatrix() const
assume(type == PerspectiveFrustum || type == OrthographicFrustum);
if (type == PerspectiveFrustum)
{
return float4x4::D3DPerspProjRH(nearPlaneDistance, farPlaneDistance, orthographicWidth, orthographicHeight);
return float4x4::D3DPerspProjRH(nearPlaneDistance, farPlaneDistance, horizontalFov, verticalFov);
}
else
{
Expand Down Expand Up @@ -572,7 +572,7 @@ bool Frustum::Intersects(const Polyhedron &polyhedron) const
return this->ToPolyhedron().Intersects(polyhedron);
}

#ifdef MATH_TINYXML_INTEROP
#if defined(MATH_TINYXML_INTEROP) && defined(MATH_CONTAINERLIB_SUPPORT)

void Frustum::DeserializeFromXml(TiXmlElement *e)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Geometry/Frustum.h
Expand Up @@ -354,7 +354,7 @@ class Frustum
bool Intersects(const Frustum &frustum) const;
bool Intersects(const Polyhedron &polyhedron) const;

#ifdef MATH_TINYXML_INTEROP
#if defined(MATH_TINYXML_INTEROP) && defined(MATH_CONTAINERLIB_SUPPORT)
void DeserializeFromXml(TiXmlElement *e);
#endif

Expand Down
2 changes: 0 additions & 2 deletions src/Geometry/KDTree.h
Expand Up @@ -2,8 +2,6 @@

#include "Types.h"

#define MATH_CONTAINERLIB_SUPPORT

#ifdef MATH_CONTAINERLIB_SUPPORT
#include "Container/MaxHeap.h"
#endif
Expand Down

0 comments on commit 41649ff

Please sign in to comment.