GL3: Remove dead code

--HG--
branch : opengl3
hg/feature/opengl3
kaetemi 11 years ago
parent 11dc9110c2
commit 1a40e67fee

@ -46,20 +46,8 @@ void CDriverGLStates3::init()
H_AUTO_OGL(CDriverGLStates3_init) H_AUTO_OGL(CDriverGLStates3_init)
// By default all arrays are disabled. // By default all arrays are disabled.
_VertexArrayEnabled= false; for (uint i = 0; i < CVertexBuffer::NumValue; ++i)
_NormalArrayEnabled= false;
_WeightArrayEnabled= false;
_ColorArrayEnabled= false;
_SecondaryColorArrayEnabled= false;
uint i;
for (i=0; i<sizeof(_TexCoordArrayEnabled)/sizeof(_TexCoordArrayEnabled[0]); i++)
{
_TexCoordArrayEnabled[i]= false;
}
for (i=0; i<CVertexBuffer::NumValue; i++)
{
_VertexAttribArrayEnabled[i] = false; _VertexAttribArrayEnabled[i] = false;
}
_DepthRangeNear = 0.f; _DepthRangeNear = 0.f;
_DepthRangeFar = 1.f; _DepthRangeFar = 1.f;
_ZBias = 0.f; _ZBias = 0.f;
@ -133,9 +121,7 @@ void CDriverGLStates3::forceDefaults(uint nbStages)
// ActiveTexture current texture to 0. // ActiveTexture current texture to 0.
nglActiveTexture(GL_TEXTURE0); nglActiveTexture(GL_TEXTURE0);
_CurrentActiveTexture = 0; _CurrentActiveTexture = 0;
_CurrentClientActiveTexture = 0;
// Depth range // Depth range
_DepthRangeNear = 0.f; _DepthRangeNear = 0.f;

@ -172,13 +172,6 @@ private:
uint _CurrentActiveTexture; uint _CurrentActiveTexture;
TTextureMode _TextureMode[8]; TTextureMode _TextureMode[8];
bool _VertexArrayEnabled;
bool _NormalArrayEnabled;
bool _WeightArrayEnabled;
bool _ColorArrayEnabled;
bool _SecondaryColorArrayEnabled;
uint _CurrentClientActiveTexture;
bool _TexCoordArrayEnabled[8];
bool _VertexAttribArrayEnabled[CVertexBuffer::NumValue]; bool _VertexAttribArrayEnabled[CVertexBuffer::NumValue];
GLint _TexGenMode[8]; GLint _TexGenMode[8];

Loading…
Cancel
Save