aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llspatialpartition.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llspatialpartition.cpp')
-rw-r--r--linden/indra/newview/llspatialpartition.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/linden/indra/newview/llspatialpartition.cpp b/linden/indra/newview/llspatialpartition.cpp
index e91e108..cb115ff 100644
--- a/linden/indra/newview/llspatialpartition.cpp
+++ b/linden/indra/newview/llspatialpartition.cpp
@@ -1646,7 +1646,7 @@ public:
1646 1646
1647void drawBox(const LLVector3& c, const LLVector3& r) 1647void drawBox(const LLVector3& c, const LLVector3& r)
1648{ 1648{
1649 gGL.begin(GL_TRIANGLE_STRIP); 1649 gGL.begin(LLVertexBuffer::TRIANGLE_STRIP);
1650 //left front 1650 //left front
1651 gGL.vertex3fv((c+r.scaledVec(LLVector3(-1,1,-1))).mV); 1651 gGL.vertex3fv((c+r.scaledVec(LLVector3(-1,1,-1))).mV);
1652 gGL.vertex3fv((c+r.scaledVec(LLVector3(-1,1,1))).mV); 1652 gGL.vertex3fv((c+r.scaledVec(LLVector3(-1,1,1))).mV);
@@ -1665,7 +1665,7 @@ void drawBox(const LLVector3& c, const LLVector3& r)
1665 gGL.end(); 1665 gGL.end();
1666 1666
1667 //bottom 1667 //bottom
1668 gGL.begin(GL_TRIANGLE_STRIP); 1668 gGL.begin(LLVertexBuffer::TRIANGLE_STRIP);
1669 gGL.vertex3fv((c+r.scaledVec(LLVector3(1,1,-1))).mV); 1669 gGL.vertex3fv((c+r.scaledVec(LLVector3(1,1,-1))).mV);
1670 gGL.vertex3fv((c+r.scaledVec(LLVector3(1,-1,-1))).mV); 1670 gGL.vertex3fv((c+r.scaledVec(LLVector3(1,-1,-1))).mV);
1671 gGL.vertex3fv((c+r.scaledVec(LLVector3(-1,1,-1))).mV); 1671 gGL.vertex3fv((c+r.scaledVec(LLVector3(-1,1,-1))).mV);
@@ -1673,7 +1673,7 @@ void drawBox(const LLVector3& c, const LLVector3& r)
1673 gGL.end(); 1673 gGL.end();
1674 1674
1675 //top 1675 //top
1676 gGL.begin(GL_TRIANGLE_STRIP); 1676 gGL.begin(LLVertexBuffer::TRIANGLE_STRIP);
1677 gGL.vertex3fv((c+r.scaledVec(LLVector3(1,1,1))).mV); 1677 gGL.vertex3fv((c+r.scaledVec(LLVector3(1,1,1))).mV);
1678 gGL.vertex3fv((c+r.scaledVec(LLVector3(-1,1,1))).mV); 1678 gGL.vertex3fv((c+r.scaledVec(LLVector3(-1,1,1))).mV);
1679 gGL.vertex3fv((c+r.scaledVec(LLVector3(1,-1,1))).mV); 1679 gGL.vertex3fv((c+r.scaledVec(LLVector3(1,-1,1))).mV);
@@ -1688,7 +1688,7 @@ void drawBoxOutline(const LLVector3& pos, const LLVector3& size)
1688 LLVector3 v3 = size.scaledVec(LLVector3(-1,-1,1)); 1688 LLVector3 v3 = size.scaledVec(LLVector3(-1,-1,1));
1689 LLVector3 v4 = size.scaledVec(LLVector3( 1,-1,1)); 1689 LLVector3 v4 = size.scaledVec(LLVector3( 1,-1,1));
1690 1690
1691 gGL.begin(GL_LINES); 1691 gGL.begin(LLVertexBuffer::LINES);
1692 1692
1693 //top 1693 //top
1694 gGL.vertex3fv((pos+v1).mV); 1694 gGL.vertex3fv((pos+v1).mV);
@@ -2032,7 +2032,7 @@ void renderOctree(LLSpatialGroup* group)
2032 drawBoxOutline(group->mObjectBounds[0], group->mObjectBounds[1]); 2032 drawBoxOutline(group->mObjectBounds[0], group->mObjectBounds[1]);
2033 gGL.flush(); 2033 gGL.flush();
2034 glLineWidth(1.f); 2034 glLineWidth(1.f);
2035 gGL.stop(); 2035 gGL.flush();
2036 for (LLSpatialGroup::element_iter i = group->getData().begin(); i != group->getData().end(); ++i) 2036 for (LLSpatialGroup::element_iter i = group->getData().begin(); i != group->getData().end(); ++i)
2037 { 2037 {
2038 LLDrawable* drawable = *i; 2038 LLDrawable* drawable = *i;
@@ -2074,7 +2074,7 @@ void renderOctree(LLSpatialGroup* group)
2074 } 2074 }
2075 } 2075 }
2076 glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); 2076 glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
2077 gGL.start(); 2077 gGL.color4f(1,1,1,1);
2078 } 2078 }
2079 } 2079 }
2080 else 2080 else
@@ -2313,7 +2313,7 @@ void renderPoints(LLDrawable* drawablep)
2313 LLGLDepthTest depth(GL_FALSE, GL_FALSE); 2313 LLGLDepthTest depth(GL_FALSE, GL_FALSE);
2314 if (drawablep->getNumFaces()) 2314 if (drawablep->getNumFaces())
2315 { 2315 {
2316 gGL.begin(GL_POINTS); 2316 gGL.begin(LLVertexBuffer::POINTS);
2317 gGL.color3f(1,1,1); 2317 gGL.color3f(1,1,1);
2318 LLVector3 center(drawablep->getPositionGroup()); 2318 LLVector3 center(drawablep->getPositionGroup());
2319 for (S32 i = 0; i < drawablep->getNumFaces(); i++) 2319 for (S32 i = 0; i < drawablep->getNumFaces(); i++)
@@ -2405,14 +2405,14 @@ public:
2405 if (group->mSpatialPartition->mRenderByGroup && 2405 if (group->mSpatialPartition->mRenderByGroup &&
2406 gPipeline.hasRenderDebugMask(LLPipeline::RENDER_DEBUG_OCCLUSION)) 2406 gPipeline.hasRenderDebugMask(LLPipeline::RENDER_DEBUG_OCCLUSION))
2407 { 2407 {
2408 gGL.stop(); 2408 gGL.flush();
2409 glPushMatrix(); 2409 glPushMatrix();
2410 gGLLastMatrix = NULL; 2410 gGLLastMatrix = NULL;
2411 glLoadMatrixd(gGLModelView); 2411 glLoadMatrixd(gGLModelView);
2412 renderVisibility(group, mCamera); 2412 renderVisibility(group, mCamera);
2413 gGLLastMatrix = NULL; 2413 gGLLastMatrix = NULL;
2414 glPopMatrix(); 2414 glPopMatrix();
2415 gGL.start(); 2415 gGL.color4f(1,1,1,1);
2416 } 2416 }
2417 } 2417 }
2418 } 2418 }