add LLImageGL::create(...) back for server side use.
parent
77f56a3f3d
commit
104f32750e
|
|
@ -262,6 +262,31 @@ void LLImageGL::restoreGL()
|
|||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
//for server side use only.
|
||||
//static
|
||||
BOOL LLImageGL::create(LLPointer<LLImageGL>& dest, BOOL usemipmaps)
|
||||
{
|
||||
dest = new LLImageGL(usemipmaps);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
//for server side use only.
|
||||
BOOL LLImageGL::create(LLPointer<LLImageGL>& dest, U32 width, U32 height, U8 components, BOOL usemipmaps)
|
||||
{
|
||||
dest = new LLImageGL(width, height, components, usemipmaps);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
//for server side use only.
|
||||
BOOL LLImageGL::create(LLPointer<LLImageGL>& dest, const LLImageRaw* imageraw, BOOL usemipmaps)
|
||||
{
|
||||
dest = new LLImageGL(imageraw, usemipmaps);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
LLImageGL::LLImageGL(BOOL usemipmaps)
|
||||
: mSaveData(0)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -71,7 +71,14 @@ public:
|
|||
static S32 updateBoundTexMem(const S32 delta);
|
||||
|
||||
static bool checkSize(S32 width, S32 height);
|
||||
|
||||
|
||||
//for server side use only.
|
||||
// Not currently necessary for LLImageGL, but required in some derived classes,
|
||||
// so include for compatability
|
||||
static BOOL create(LLPointer<LLImageGL>& dest, BOOL usemipmaps = TRUE);
|
||||
static BOOL create(LLPointer<LLImageGL>& dest, U32 width, U32 height, U8 components, BOOL usemipmaps = TRUE);
|
||||
static BOOL create(LLPointer<LLImageGL>& dest, const LLImageRaw* imageraw, BOOL usemipmaps = TRUE);
|
||||
|
||||
public:
|
||||
LLImageGL(BOOL usemipmaps = TRUE);
|
||||
LLImageGL(U32 width, U32 height, U8 components, BOOL usemipmaps = TRUE);
|
||||
|
|
|
|||
Loading…
Reference in New Issue