parent
06c94c83fe
commit
7929230c04
|
|
@ -71,18 +71,6 @@ static const GLint sGLAddressMode[] =
|
|||
GL_CLAMP_TO_EDGE
|
||||
};
|
||||
|
||||
static const GLenum sGLCompareFunc[] =
|
||||
{
|
||||
GL_NEVER,
|
||||
GL_ALWAYS,
|
||||
GL_LESS,
|
||||
GL_LEQUAL,
|
||||
GL_EQUAL,
|
||||
GL_NOTEQUAL,
|
||||
GL_GEQUAL,
|
||||
GL_GREATER
|
||||
};
|
||||
|
||||
const U32 immediate_mask = LLVertexBuffer::MAP_VERTEX | LLVertexBuffer::MAP_COLOR | LLVertexBuffer::MAP_TEXCOORD0;
|
||||
|
||||
static const GLenum sGLBlendFactor[] =
|
||||
|
|
@ -102,10 +90,7 @@ static const GLenum sGLBlendFactor[] =
|
|||
};
|
||||
|
||||
LLTexUnit::LLTexUnit(S32 index)
|
||||
: mCurrTexType(TT_NONE), mCurrBlendType(TB_MULT),
|
||||
mCurrColorOp(TBO_MULT), mCurrAlphaOp(TBO_MULT),
|
||||
mCurrColorSrc1(TBS_TEX_COLOR), mCurrColorSrc2(TBS_PREV_COLOR),
|
||||
mCurrAlphaSrc1(TBS_TEX_ALPHA), mCurrAlphaSrc2(TBS_PREV_ALPHA),
|
||||
: mCurrTexType(TT_NONE),
|
||||
mCurrColorScale(1), mCurrAlphaScale(1), mCurrTexture(0), mTexColorSpace(TCS_LINEAR),
|
||||
mHasMipMaps(false),
|
||||
mIndex(index)
|
||||
|
|
@ -847,8 +832,6 @@ LLRender::LLRender()
|
|||
mCurrColorMask[i] = true;
|
||||
}
|
||||
|
||||
mCurrAlphaFunc = CF_DEFAULT;
|
||||
mCurrAlphaFuncVal = 0.01f;
|
||||
mCurrBlendColorSFactor = BF_UNDEF;
|
||||
mCurrBlendAlphaSFactor = BF_UNDEF;
|
||||
mCurrBlendColorDFactor = BF_UNDEF;
|
||||
|
|
|
|||
|
|
@ -214,13 +214,6 @@ protected:
|
|||
const S32 mIndex;
|
||||
U32 mCurrTexture;
|
||||
eTextureType mCurrTexType;
|
||||
eTextureBlendType mCurrBlendType;
|
||||
eTextureBlendOp mCurrColorOp;
|
||||
eTextureBlendSrc mCurrColorSrc1;
|
||||
eTextureBlendSrc mCurrColorSrc2;
|
||||
eTextureBlendOp mCurrAlphaOp;
|
||||
eTextureBlendSrc mCurrAlphaSrc1;
|
||||
eTextureBlendSrc mCurrAlphaSrc2;
|
||||
eTextureColorSpace mTexColorSpace;
|
||||
S32 mCurrColorScale;
|
||||
S32 mCurrAlphaScale;
|
||||
|
|
@ -481,8 +474,6 @@ private:
|
|||
U32 mMode;
|
||||
U32 mCurrTextureUnitIndex;
|
||||
bool mCurrColorMask[4];
|
||||
eCompareFunc mCurrAlphaFunc;
|
||||
F32 mCurrAlphaFuncVal;
|
||||
|
||||
LLPointer<LLVertexBuffer> mBuffer;
|
||||
LLStrider<LLVector3> mVerticesp;
|
||||
|
|
|
|||
Loading…
Reference in New Issue