diff options
author | Jacek Antonelli | 2008-08-15 23:45:49 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:49 -0500 |
commit | 8538c0f35dc5fb780f02930256e627e5266ede4a (patch) | |
tree | 58950646aae6534fafe680a5cf879d01cd99d254 /linden/indra/newview/llfloatersnapshot.cpp | |
parent | Second Life viewer sources 1.20.5 (diff) | |
download | meta-impy-8538c0f35dc5fb780f02930256e627e5266ede4a.zip meta-impy-8538c0f35dc5fb780f02930256e627e5266ede4a.tar.gz meta-impy-8538c0f35dc5fb780f02930256e627e5266ede4a.tar.bz2 meta-impy-8538c0f35dc5fb780f02930256e627e5266ede4a.tar.xz |
Second Life viewer sources 1.20.6
Diffstat (limited to 'linden/indra/newview/llfloatersnapshot.cpp')
-rw-r--r-- | linden/indra/newview/llfloatersnapshot.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linden/indra/newview/llfloatersnapshot.cpp b/linden/indra/newview/llfloatersnapshot.cpp index 20b4510..c36c54d 100644 --- a/linden/indra/newview/llfloatersnapshot.cpp +++ b/linden/indra/newview/llfloatersnapshot.cpp | |||
@@ -413,7 +413,7 @@ void LLSnapshotLivePreview::draw() | |||
413 | glPushMatrix(); | 413 | glPushMatrix(); |
414 | { | 414 | { |
415 | glTranslatef((F32)rect.mLeft, (F32)rect.mBottom, 0.f); | 415 | glTranslatef((F32)rect.mLeft, (F32)rect.mBottom, 0.f); |
416 | gGL.begin(GL_QUADS); | 416 | gGL.begin(LLVertexBuffer::QUADS); |
417 | { | 417 | { |
418 | gGL.texCoord2f(uv_width, uv_height); | 418 | gGL.texCoord2f(uv_width, uv_height); |
419 | gGL.vertex2i(rect.getWidth(), rect.getHeight() ); | 419 | gGL.vertex2i(rect.getWidth(), rect.getHeight() ); |
@@ -476,7 +476,7 @@ void LLSnapshotLivePreview::draw() | |||
476 | S32 y2 = gViewerWindow->getWindowHeight(); | 476 | S32 y2 = gViewerWindow->getWindowHeight(); |
477 | 477 | ||
478 | LLGLSNoTexture no_texture; | 478 | LLGLSNoTexture no_texture; |
479 | gGL.begin(GL_QUADS); | 479 | gGL.begin(LLVertexBuffer::QUADS); |
480 | { | 480 | { |
481 | gGL.color4f(1.f, 1.f, 1.f, 0.f); | 481 | gGL.color4f(1.f, 1.f, 1.f, 0.f); |
482 | gGL.vertex2i(x1, y1); | 482 | gGL.vertex2i(x1, y1); |
@@ -507,7 +507,7 @@ void LLSnapshotLivePreview::draw() | |||
507 | LLGLSNoTexture no_texture; | 507 | LLGLSNoTexture no_texture; |
508 | gGL.color4f(1.f, 1.f, 1.f, 1.f); | 508 | gGL.color4f(1.f, 1.f, 1.f, 1.f); |
509 | LLRect outline_rect = mImageRect[mCurImageIndex]; | 509 | LLRect outline_rect = mImageRect[mCurImageIndex]; |
510 | gGL.begin(GL_QUADS); | 510 | gGL.begin(LLVertexBuffer::QUADS); |
511 | { | 511 | { |
512 | gGL.vertex2i(outline_rect.mLeft - BORDER_WIDTH, outline_rect.mTop + BORDER_WIDTH); | 512 | gGL.vertex2i(outline_rect.mLeft - BORDER_WIDTH, outline_rect.mTop + BORDER_WIDTH); |
513 | gGL.vertex2i(outline_rect.mRight + BORDER_WIDTH, outline_rect.mTop + BORDER_WIDTH); | 513 | gGL.vertex2i(outline_rect.mRight + BORDER_WIDTH, outline_rect.mTop + BORDER_WIDTH); |
@@ -553,7 +553,7 @@ void LLSnapshotLivePreview::draw() | |||
553 | LLRect& rect = mImageRect[old_image_index]; | 553 | LLRect& rect = mImageRect[old_image_index]; |
554 | glTranslatef((F32)rect.mLeft, (F32)rect.mBottom - llround(getRect().getHeight() * 2.f * (fall_interp * fall_interp)), 0.f); | 554 | glTranslatef((F32)rect.mLeft, (F32)rect.mBottom - llround(getRect().getHeight() * 2.f * (fall_interp * fall_interp)), 0.f); |
555 | glRotatef(-45.f * fall_interp, 0.f, 0.f, 1.f); | 555 | glRotatef(-45.f * fall_interp, 0.f, 0.f, 1.f); |
556 | gGL.begin(GL_QUADS); | 556 | gGL.begin(LLVertexBuffer::QUADS); |
557 | { | 557 | { |
558 | gGL.texCoord2f(uv_width, uv_height); | 558 | gGL.texCoord2f(uv_width, uv_height); |
559 | gGL.vertex2i(rect.getWidth(), rect.getHeight() ); | 559 | gGL.vertex2i(rect.getWidth(), rect.getHeight() ); |