summaryrefslogtreecommitdiff
path: root/indra/llrender/llvertexbuffer.h
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2011-02-22 11:22:50 -0700
committerXiaohong Bao <bao@lindenlab.com>2011-02-22 11:22:50 -0700
commit417069f152e6f4e2f50e7b41b0505765302eb823 (patch)
tree3a0bcf2ab19b0266b9f456c3b97b8fa4739ba4f5 /indra/llrender/llvertexbuffer.h
parentff5e3f5c2e566f3a8e86efaa763f7b12e07eeb53 (diff)
more fix for SH-895/STORM-336: memory leaking. fixed vertex buffer caused leaking.
Diffstat (limited to 'indra/llrender/llvertexbuffer.h')
-rw-r--r--indra/llrender/llvertexbuffer.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/indra/llrender/llvertexbuffer.h b/indra/llrender/llvertexbuffer.h
index 18d50c87bb..09a16d5b9d 100644
--- a/indra/llrender/llvertexbuffer.h
+++ b/indra/llrender/llvertexbuffer.h
@@ -152,11 +152,10 @@ public:
void allocateBuffer(S32 nverts, S32 nindices, bool create);
virtual void resizeBuffer(S32 newnverts, S32 newnindices);
- void preUpdate() ;
- void postUpdate() const ;
void freeClientBuffer() ;
- void dirty() {mDirty = TRUE;}
-
+ void allocateClientVertexBuffer() ;
+ void allocateClientIndexBuffer() ;
+
// Only call each getVertexPointer, etc, once before calling unmapBuffer()
// call unmapBuffer() after calls to getXXXStrider() before any cals to setBuffer()
// example:
@@ -221,8 +220,7 @@ protected:
S32 mOffsets[TYPE_MAX];
BOOL mResized; // if TRUE, client buffer has been resized and GL buffer has not
BOOL mDynamicSize; // if TRUE, buffer has been resized at least once (and should be padded)
- mutable BOOL mDirty ;
-
+
class DirtyRegion
{
public: