aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lldrawpoolstars.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/lldrawpoolstars.cpp')
-rw-r--r--linden/indra/newview/lldrawpoolstars.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/linden/indra/newview/lldrawpoolstars.cpp b/linden/indra/newview/lldrawpoolstars.cpp
index 3d4eebb..d5d57e6 100644
--- a/linden/indra/newview/lldrawpoolstars.cpp
+++ b/linden/indra/newview/lldrawpoolstars.cpp
@@ -4,6 +4,7 @@
4 * 4 *
5 * Copyright (c) 2002-2007, Linden Research, Inc. 5 * Copyright (c) 2002-2007, Linden Research, Inc.
6 * 6 *
7 * Second Life Viewer Source Code
7 * The source code in this file ("Source Code") is provided by Linden Lab 8 * The source code in this file ("Source Code") is provided by Linden Lab
8 * to you under the terms of the GNU General Public License, version 2.0 9 * to you under the terms of the GNU General Public License, version 2.0
9 * ("GPL"), unless you have obtained a separate licensing agreement 10 * ("GPL"), unless you have obtained a separate licensing agreement
@@ -34,6 +35,7 @@
34#include "llvostars.h" 35#include "llvostars.h"
35#include "pipeline.h" 36#include "pipeline.h"
36#include "llviewercamera.h" 37#include "llviewercamera.h"
38#include "llglslshader.h"
37 39
38LLDrawPoolStars::LLDrawPoolStars() : 40LLDrawPoolStars::LLDrawPoolStars() :
39 LLFacePool(POOL_STARS) 41 LLFacePool(POOL_STARS)
@@ -47,7 +49,7 @@ LLDrawPool *LLDrawPoolStars::instancePool()
47 49
48void LLDrawPoolStars::prerender() 50void LLDrawPoolStars::prerender()
49{ 51{
50 mVertexShaderLevel = gPipeline.getVertexShaderLevel(LLPipeline::SHADER_ENVIRONMENT); 52 mVertexShaderLevel = LLShaderMgr::getVertexShaderLevel(LLShaderMgr::SHADER_ENVIRONMENT);
51} 53}
52 54
53void LLDrawPoolStars::render(S32 pass) 55void LLDrawPoolStars::render(S32 pass)
@@ -73,9 +75,7 @@ void LLDrawPoolStars::render(S32 pass)
73 75
74 gPipeline.disableLights(); 76 gPipeline.disableLights();
75 77
76 GLint viewport[4]; 78 GLint* viewport = (GLint*) gGLViewport;
77
78 glGetIntegerv(GL_VIEWPORT, viewport);
79 79
80 if (viewport[2] > 512 && viewport[3] > 512) 80 if (viewport[2] > 512 && viewport[3] > 512)
81 { 81 {