diff options
Diffstat (limited to 'linden/indra/newview/llglsandbox.cpp')
-rw-r--r-- | linden/indra/newview/llglsandbox.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/linden/indra/newview/llglsandbox.cpp b/linden/indra/newview/llglsandbox.cpp index f63eaf3..4ea38aa 100644 --- a/linden/indra/newview/llglsandbox.cpp +++ b/linden/indra/newview/llglsandbox.cpp | |||
@@ -358,7 +358,7 @@ void LLCompass::draw() | |||
358 | mBkgndTexture->bind(); | 358 | mBkgndTexture->bind(); |
359 | gGL.color4f(1.0f, 1.0f, 1.0f, 1.0f); | 359 | gGL.color4f(1.0f, 1.0f, 1.0f, 1.0f); |
360 | 360 | ||
361 | gGL.begin(GL_QUADS); | 361 | gGL.begin(LLVertexBuffer::QUADS); |
362 | 362 | ||
363 | gGL.texCoord2f(1.f, 1.f); | 363 | gGL.texCoord2f(1.f, 1.f); |
364 | gGL.vertex2i(width, height); | 364 | gGL.vertex2i(width, height); |
@@ -384,7 +384,7 @@ void LLCompass::draw() | |||
384 | mTexture->bind(); | 384 | mTexture->bind(); |
385 | gGL.color4f(1.0f, 1.0f, 1.0f, 1.0f); | 385 | gGL.color4f(1.0f, 1.0f, 1.0f, 1.0f); |
386 | 386 | ||
387 | gGL.begin(GL_QUADS); | 387 | gGL.begin(LLVertexBuffer::QUADS); |
388 | 388 | ||
389 | gGL.texCoord2f(1.f, 1.f); | 389 | gGL.texCoord2f(1.f, 1.f); |
390 | gGL.vertex2i(width, height); | 390 | gGL.vertex2i(width, height); |
@@ -428,7 +428,7 @@ void LLHorizontalCompass::draw() | |||
428 | 428 | ||
429 | mTexture->bind(); | 429 | mTexture->bind(); |
430 | gGL.color4f(1.0f, 1.0f, 1.0f, 1.0f ); | 430 | gGL.color4f(1.0f, 1.0f, 1.0f, 1.0f ); |
431 | gGL.begin( GL_QUADS ); | 431 | gGL.begin( LLVertexBuffer::QUADS ); |
432 | 432 | ||
433 | gGL.texCoord2f(right, 1.f); | 433 | gGL.texCoord2f(right, 1.f); |
434 | gGL.vertex2i(width, height); | 434 | gGL.vertex2i(width, height); |
@@ -479,11 +479,11 @@ void LLWind::renderVectors() | |||
479 | gGL.pushMatrix(); | 479 | gGL.pushMatrix(); |
480 | gGL.translatef((F32)i * region_width_meters/mSize, (F32)j * region_width_meters/mSize, 0.0); | 480 | gGL.translatef((F32)i * region_width_meters/mSize, (F32)j * region_width_meters/mSize, 0.0); |
481 | gGL.color3f(0,1,0); | 481 | gGL.color3f(0,1,0); |
482 | gGL.begin(GL_POINTS); | 482 | gGL.begin(LLVertexBuffer::POINTS); |
483 | gGL.vertex3f(0,0,0); | 483 | gGL.vertex3f(0,0,0); |
484 | gGL.end(); | 484 | gGL.end(); |
485 | gGL.color3f(1,0,0); | 485 | gGL.color3f(1,0,0); |
486 | gGL.begin(GL_LINES); | 486 | gGL.begin(LLVertexBuffer::LINES); |
487 | gGL.vertex3f(x * 0.1f, y * 0.1f ,0.f); | 487 | gGL.vertex3f(x * 0.1f, y * 0.1f ,0.f); |
488 | gGL.vertex3f(x, y, 0.f); | 488 | gGL.vertex3f(x, y, 0.f); |
489 | gGL.end(); | 489 | gGL.end(); |
@@ -532,7 +532,7 @@ void LLViewerParcelMgr::renderRect(const LLVector3d &west_south_bottom_global, | |||
532 | gGL.color4f(1.f, 1.f, 0.f, 1.f); | 532 | gGL.color4f(1.f, 1.f, 0.f, 1.f); |
533 | 533 | ||
534 | // Cheat and give this the same pick-name as land | 534 | // Cheat and give this the same pick-name as land |
535 | gGL.begin(GL_LINES); | 535 | gGL.begin(LLVertexBuffer::LINES); |
536 | 536 | ||
537 | gGL.vertex3f(west, north, nw_bottom); | 537 | gGL.vertex3f(west, north, nw_bottom); |
538 | gGL.vertex3f(west, north, nw_top); | 538 | gGL.vertex3f(west, north, nw_top); |
@@ -549,7 +549,7 @@ void LLViewerParcelMgr::renderRect(const LLVector3d &west_south_bottom_global, | |||
549 | gGL.end(); | 549 | gGL.end(); |
550 | 550 | ||
551 | gGL.color4f(1.f, 1.f, 0.f, 0.2f); | 551 | gGL.color4f(1.f, 1.f, 0.f, 0.2f); |
552 | gGL.begin(GL_QUADS); | 552 | gGL.begin(LLVertexBuffer::QUADS); |
553 | 553 | ||
554 | gGL.vertex3f(west, north, nw_bottom); | 554 | gGL.vertex3f(west, north, nw_bottom); |
555 | gGL.vertex3f(west, north, nw_top); | 555 | gGL.vertex3f(west, north, nw_top); |
@@ -616,7 +616,7 @@ void LLViewerParcelMgr::renderParcel(LLParcel* parcel ) | |||
616 | gGL.color4f(0.f, 1.f, 1.f, 1.f); | 616 | gGL.color4f(0.f, 1.f, 1.f, 1.f); |
617 | 617 | ||
618 | // Cheat and give this the same pick-name as land | 618 | // Cheat and give this the same pick-name as land |
619 | gGL.begin(GL_LINES); | 619 | gGL.begin(LLVertexBuffer::LINES); |
620 | 620 | ||
621 | gGL.vertex3f(west, north, nw_bottom); | 621 | gGL.vertex3f(west, north, nw_bottom); |
622 | gGL.vertex3f(west, north, nw_top); | 622 | gGL.vertex3f(west, north, nw_top); |
@@ -633,7 +633,7 @@ void LLViewerParcelMgr::renderParcel(LLParcel* parcel ) | |||
633 | gGL.end(); | 633 | gGL.end(); |
634 | 634 | ||
635 | gGL.color4f(0.f, 1.f, 1.f, 0.2f); | 635 | gGL.color4f(0.f, 1.f, 1.f, 0.2f); |
636 | gGL.begin(GL_QUADS); | 636 | gGL.begin(LLVertexBuffer::QUADS); |
637 | 637 | ||
638 | gGL.vertex3f(west, north, nw_bottom); | 638 | gGL.vertex3f(west, north, nw_bottom); |
639 | gGL.vertex3f(west, north, nw_top); | 639 | gGL.vertex3f(west, north, nw_top); |
@@ -786,7 +786,7 @@ void LLViewerParcelMgr::renderHighlightSegments(const U8* segments, LLViewerRegi | |||
786 | if (!has_segments) | 786 | if (!has_segments) |
787 | { | 787 | { |
788 | has_segments = true; | 788 | has_segments = true; |
789 | gGL.begin(GL_QUADS); | 789 | gGL.begin(LLVertexBuffer::QUADS); |
790 | } | 790 | } |
791 | renderOneSegment(x1, y1, x2, y2, PARCEL_POST_HEIGHT, SOUTH_MASK, regionp); | 791 | renderOneSegment(x1, y1, x2, y2, PARCEL_POST_HEIGHT, SOUTH_MASK, regionp); |
792 | } | 792 | } |
@@ -802,7 +802,7 @@ void LLViewerParcelMgr::renderHighlightSegments(const U8* segments, LLViewerRegi | |||
802 | if (!has_segments) | 802 | if (!has_segments) |
803 | { | 803 | { |
804 | has_segments = true; | 804 | has_segments = true; |
805 | gGL.begin(GL_QUADS); | 805 | gGL.begin(LLVertexBuffer::QUADS); |
806 | } | 806 | } |
807 | renderOneSegment(x1, y1, x2, y2, PARCEL_POST_HEIGHT, WEST_MASK, regionp); | 807 | renderOneSegment(x1, y1, x2, y2, PARCEL_POST_HEIGHT, WEST_MASK, regionp); |
808 | } | 808 | } |
@@ -857,7 +857,7 @@ void LLViewerParcelMgr::renderCollisionSegments(U8* segments, BOOL use_pass, LLV | |||
857 | LLViewerImage::bindTexture(mBlockedImage); | 857 | LLViewerImage::bindTexture(mBlockedImage); |
858 | } | 858 | } |
859 | 859 | ||
860 | gGL.begin(GL_QUADS); | 860 | gGL.begin(LLVertexBuffer::QUADS); |
861 | 861 | ||
862 | for (y = 0; y < STRIDE; y++) | 862 | for (y = 0; y < STRIDE; y++) |
863 | { | 863 | { |
@@ -1014,7 +1014,7 @@ void LLViewerObjectList::renderObjectBeacons() | |||
1014 | LLGLSNoTexture gls_ui_no_texture; | 1014 | LLGLSNoTexture gls_ui_no_texture; |
1015 | 1015 | ||
1016 | S32 last_line_width = -1; | 1016 | S32 last_line_width = -1; |
1017 | // gGL.begin(GL_LINES); // Always happens in (line_width != last_line_width) | 1017 | // gGL.begin(LLVertexBuffer::LINES); // Always happens in (line_width != last_line_width) |
1018 | 1018 | ||
1019 | for (S32 i = 0; i < mDebugBeacons.count(); i++) | 1019 | for (S32 i = 0; i < mDebugBeacons.count(); i++) |
1020 | { | 1020 | { |
@@ -1031,7 +1031,7 @@ void LLViewerObjectList::renderObjectBeacons() | |||
1031 | } | 1031 | } |
1032 | glLineWidth( (F32)line_width ); | 1032 | glLineWidth( (F32)line_width ); |
1033 | last_line_width = line_width; | 1033 | last_line_width = line_width; |
1034 | gGL.begin(GL_LINES); | 1034 | gGL.begin(LLVertexBuffer::LINES); |
1035 | } | 1035 | } |
1036 | 1036 | ||
1037 | const LLVector3 &thisline = debug_beacon.mPositionAgent; | 1037 | const LLVector3 &thisline = debug_beacon.mPositionAgent; |
@@ -1053,7 +1053,7 @@ void LLViewerObjectList::renderObjectBeacons() | |||
1053 | LLGLDepthTest gls_depth(GL_TRUE); | 1053 | LLGLDepthTest gls_depth(GL_TRUE); |
1054 | 1054 | ||
1055 | S32 last_line_width = -1; | 1055 | S32 last_line_width = -1; |
1056 | // gGL.begin(GL_LINES); // Always happens in (line_width != last_line_width) | 1056 | // gGL.begin(LLVertexBuffer::LINES); // Always happens in (line_width != last_line_width) |
1057 | 1057 | ||
1058 | for (S32 i = 0; i < mDebugBeacons.count(); i++) | 1058 | for (S32 i = 0; i < mDebugBeacons.count(); i++) |
1059 | { | 1059 | { |
@@ -1069,7 +1069,7 @@ void LLViewerObjectList::renderObjectBeacons() | |||
1069 | } | 1069 | } |
1070 | glLineWidth( (F32)line_width ); | 1070 | glLineWidth( (F32)line_width ); |
1071 | last_line_width = line_width; | 1071 | last_line_width = line_width; |
1072 | gGL.begin(GL_LINES); | 1072 | gGL.begin(LLVertexBuffer::LINES); |
1073 | } | 1073 | } |
1074 | 1074 | ||
1075 | const LLVector3 &thisline = debug_beacon.mPositionAgent; | 1075 | const LLVector3 &thisline = debug_beacon.mPositionAgent; |