Compile fixes to compile LL_DEBUG, and missing header (for linux?)

This commit is contained in:
Aleric Inglewood
2011-08-01 23:33:56 +02:00
parent 6cfaecf972
commit 313e008f61
2 changed files with 6 additions and 1 deletions

View File

@@ -35,6 +35,7 @@
#include <new>
#include <cstdlib>
#include <stdint.h> // uintptr_t
#include "llerror.h"

View File

@@ -119,7 +119,11 @@ void sg_assert(BOOL expr)
void validate_drawable(LLDrawable* drawablep)
{
F64 rad = drawablep->getBinRadius();
const LLVector3* ext = drawablep->getSpatialExtents();
LLVector4a const* exta = drawablep->getSpatialExtents();
LLVector3 ext[2];
ext[0].set(exta[0].getF32ptr());
ext[1].set(exta[1].getF32ptr());
if (rad < 0 || rad > 4096 ||
(ext[1]-ext[0]).magVec() > 4096)