Skip to content

Commit b1a9688

Browse files
committed
Fix deprecated opengl usage in debug display
Signed-off-by: Rye <[email protected]>
1 parent 407c590 commit b1a9688

File tree

2 files changed

+0
-29
lines changed

2 files changed

+0
-29
lines changed

indra/llrender/llglstates.h

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -166,31 +166,4 @@ class LLGLSTracker
166166

167167
//----------------------------------------------------------------------------
168168

169-
class LLGLSSpecular
170-
{
171-
public:
172-
F32 mShininess;
173-
LLGLSSpecular(const LLColor4& color, F32 shininess)
174-
{
175-
mShininess = shininess;
176-
if (mShininess > 0.0f)
177-
{
178-
glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR, color.mV);
179-
S32 shiny = (S32)(shininess*128.f);
180-
shiny = llclamp(shiny,0,128);
181-
glMateriali(GL_FRONT_AND_BACK, GL_SHININESS, shiny);
182-
}
183-
}
184-
~LLGLSSpecular()
185-
{
186-
if (mShininess > 0.f)
187-
{
188-
glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR, LLColor4(0.f,0.f,0.f,0.f).mV);
189-
glMateriali(GL_FRONT_AND_BACK, GL_SHININESS, 0);
190-
}
191-
}
192-
};
193-
194-
//----------------------------------------------------------------------------
195-
196169
#endif

indra/newview/llviewerjointmesh.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,6 @@ U32 LLViewerJointMesh::drawShape( F32 pixelArea, bool first_pass, bool is_dummy)
242242

243243
stop_glerror();
244244

245-
LLGLSSpecular specular(LLColor4(1.f,1.f,1.f,1.f), 0.f);
246-
247245
//----------------------------------------------------------------
248246
// setup current texture
249247
//----------------------------------------------------------------

0 commit comments

Comments
 (0)