summaryrefslogtreecommitdiffstats
path: root/opengl/shared/OpenglCodecCommon/FixedBuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'opengl/shared/OpenglCodecCommon/FixedBuffer.h')
-rw-r--r--opengl/shared/OpenglCodecCommon/FixedBuffer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/opengl/shared/OpenglCodecCommon/FixedBuffer.h b/opengl/shared/OpenglCodecCommon/FixedBuffer.h
index 30b9a80..7026396 100644
--- a/opengl/shared/OpenglCodecCommon/FixedBuffer.h
+++ b/opengl/shared/OpenglCodecCommon/FixedBuffer.h
@@ -20,7 +20,7 @@ class FixedBuffer {
public:
FixedBuffer(size_t initialSize = 0) {
m_buffer = NULL;
- m_bufferLen = 0;
+ m_bufferLen = initialSize;
alloc(m_bufferLen);
}