Commit aa9c5ca9 by jbauman@chromium.org

Reset mUnmodifiedDataUse after bufferSubData

Without this, enough draws from a buffer modified only with bufferSubData will cause it to switch become static. BUG= TEST= Review URL: http://codereview.appspot.com/5123042 git-svn-id: https://angleproject.googlecode.com/svn/trunk@769 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 1a1fe249
#define MAJOR_VERSION 0
#define MINOR_VERSION 0
#define BUILD_VERSION 0
#define BUILD_REVISION 768
#define BUILD_REVISION 769
#define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x)
......
......@@ -74,6 +74,8 @@ void Buffer::bufferSubData(const void *data, GLsizeiptr size, GLintptr offset)
{
invalidateStaticData();
}
mUnmodifiedDataUse = 0;
}
StaticVertexBuffer *Buffer::getStaticVertexBuffer()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment