summaryrefslogtreecommitdiff
path: root/indra/newview/llbox.cpp
diff options
context:
space:
mode:
authorBrad Kittenbrink <brad@lindenlab.com>2008-02-27 18:58:14 +0000
committerBrad Kittenbrink <brad@lindenlab.com>2008-02-27 18:58:14 +0000
commit6d52efe452aa8469e0343da1c7d108f3f52ab651 (patch)
treea87be48e9840d7fc1f7ee514d7c7f994e71fdb3c /indra/newview/llbox.cpp
parent6027ad2630b8650cabcf00628ee9b0d25bedd67f (diff)
Merge of windlight into release (QAR-286). This includes all changes in
windlight14 which have passed QA (up through r79932). svn merge -r 80831:80833 svn+ssh://svn.lindenlab.com/svn/linden/branches/merge_windlight14_r80620
Diffstat (limited to 'indra/newview/llbox.cpp')
-rw-r--r--indra/newview/llbox.cpp28
1 files changed, 15 insertions, 13 deletions
diff --git a/indra/newview/llbox.cpp b/indra/newview/llbox.cpp
index 6f0edf717e..d0505b6b06 100644
--- a/indra/newview/llbox.cpp
+++ b/indra/newview/llbox.cpp
@@ -34,6 +34,7 @@
#include "llbox.h"
#include "llgl.h"
+#include "llglimmediate.h"
#include "llglheaders.h"
LLBox gBox;
@@ -61,7 +62,7 @@ void LLBox::cleanupGL()
void LLBox::renderface(S32 which_face)
{
- static F32 normals[6][3] =
+ /*static F32 normals[6][3] =
{
{-1.0f, 0.0f, 0.0f},
{ 0.0f, 1.0f, 0.0f},
@@ -69,7 +70,7 @@ void LLBox::renderface(S32 which_face)
{ 0.0f, -1.0f, 0.0f},
{ 0.0f, 0.0f, 1.0f},
{ 0.0f, 0.0f, -1.0f}
- };
+ };*/
static S32 faces[6][4] =
{
{0, 1, 2, 3},
@@ -80,17 +81,17 @@ void LLBox::renderface(S32 which_face)
{7, 4, 0, 3}
};
- glBegin(GL_QUADS);
- glNormal3fv(&normals[which_face][0]);
- glTexCoord2f(1,0);
- glVertex3fv(&mVertex[ faces[which_face][0] ][0]);
- glTexCoord2f(1,1);
- glVertex3fv(&mVertex[ faces[which_face][1] ][0]);
- glTexCoord2f(0,1);
- glVertex3fv(&mVertex[ faces[which_face][2] ][0]);
- glTexCoord2f(0,0);
- glVertex3fv(&mVertex[ faces[which_face][3] ][0]);
- glEnd();
+ gGL.begin(GL_QUADS);
+ //gGL.normal3fv(&normals[which_face][0]);
+ gGL.texCoord2f(1,0);
+ gGL.vertex3fv(&mVertex[ faces[which_face][0] ][0]);
+ gGL.texCoord2f(1,1);
+ gGL.vertex3fv(&mVertex[ faces[which_face][1] ][0]);
+ gGL.texCoord2f(0,1);
+ gGL.vertex3fv(&mVertex[ faces[which_face][2] ][0]);
+ gGL.texCoord2f(0,0);
+ gGL.vertex3fv(&mVertex[ faces[which_face][3] ][0]);
+ gGL.end();
}
void LLBox::render()
@@ -125,4 +126,5 @@ void LLBox::render()
renderface(2);
renderface(1);
renderface(0);
+ gGL.flush();
}