diff options
author | Dave Parks <davep@lindenlab.com> | 2010-06-04 00:11:57 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2010-06-04 00:11:57 -0500 |
commit | ca1caeb1deedd1b8e59a90223153ca6f05914b95 (patch) | |
tree | 06fa232bb37e6b802a7cf678169466a81783cf3b /indra/newview/llspatialpartition.cpp | |
parent | 22b62c1a5bf43b498774261a2a6ea43e813a2869 (diff) |
Fix for occlusion culling cypher bits being flipped.
Diffstat (limited to 'indra/newview/llspatialpartition.cpp')
-rw-r--r-- | indra/newview/llspatialpartition.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/indra/newview/llspatialpartition.cpp b/indra/newview/llspatialpartition.cpp index 3cf0138303..05e7bbb6cd 100644 --- a/indra/newview/llspatialpartition.cpp +++ b/indra/newview/llspatialpartition.cpp @@ -207,20 +207,20 @@ typedef enum //gives you a triangle fan index array static U8 sOcclusionIndices[] = { - // 000 + //000 b111, b110, b010, b011, b001, b101, b100, b110, - //001 - b110, b000, b010, b011, b111, b101, b100, b000, + //001 + b011, b010, b000, b001, b101, b111, b110, b010, //010 b101, b100, b110, b111, b011, b001, b000, b100, //011 - b100, b010, b110, b111, b101, b001, b000, b010, - //100 - b011, b010, b000, b001, b101, b111, b110, b010, + b001, b000, b100, b101, b111, b011, b010, b000, + //100 + b110, b000, b010, b011, b111, b101, b100, b000, //101 b010, b100, b000, b001, b011, b111, b110, b100, //110 - b001, b000, b100, b101, b111, b011, b010, b000, + b100, b010, b110, b111, b101, b001, b000, b010, //111 b000, b110, b100, b101, b001, b011, b010, b110, }; @@ -2045,6 +2045,8 @@ public: void drawBox(const LLVector3& c, const LLVector3& r) { + LLVertexBuffer::unbind(); + gGL.begin(LLRender::TRIANGLE_STRIP); //left front gGL.vertex3fv((c+r.scaledVec(LLVector3(-1,1,-1))).mV); |