summaryrefslogtreecommitdiff
path: root/indra/llrender/llimagegl.cpp
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2009-07-11 02:09:37 +0000
committerXiaohong Bao <bao@lindenlab.com>2009-07-11 02:09:37 +0000
commit104f32750e6ac3349e85d2c9b00a8b26c78c017a (patch)
treef80a768dca895dd3704515666a81c7ed669a3992 /indra/llrender/llimagegl.cpp
parent77f56a3f3db72b2938eadb0868fc7be975dabafa (diff)
add LLImageGL::create(...) back for server side use.
Diffstat (limited to 'indra/llrender/llimagegl.cpp')
-rw-r--r--indra/llrender/llimagegl.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/indra/llrender/llimagegl.cpp b/indra/llrender/llimagegl.cpp
index c4d91209e6..a86a0aac23 100644
--- a/indra/llrender/llimagegl.cpp
+++ b/indra/llrender/llimagegl.cpp
@@ -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)
{