Commit 512fb956 by bajones@chromium.org

Ensured that the mUsesPointSprites flag is properly preserved when loading…

Ensured that the mUsesPointSprites flag is properly preserved when loading shaders from binary cache. BUG=https://code.google.com/p/angleproject/issues/detail?id=389 Review URL: https://codereview.appspot.com/6884053 git-svn-id: https://angleproject.googlecode.com/svn/trunk@1560 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 1aca1adb
#define MAJOR_VERSION 1 #define MAJOR_VERSION 1
#define MINOR_VERSION 0 #define MINOR_VERSION 0
#define BUILD_VERSION 0 #define BUILD_VERSION 0
#define BUILD_REVISION 1557 #define BUILD_REVISION 1560
#define STRINGIFY(x) #x #define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x) #define MACRO_STRINGIFY(x) STRINGIFY(x)
......
...@@ -1685,6 +1685,7 @@ bool ProgramBinary::load(InfoLog &infoLog, const void *binary, GLsizei length) ...@@ -1685,6 +1685,7 @@ bool ProgramBinary::load(InfoLog &infoLog, const void *binary, GLsizei length)
stream.read(&mUsedVertexSamplerRange); stream.read(&mUsedVertexSamplerRange);
stream.read(&mUsedPixelSamplerRange); stream.read(&mUsedPixelSamplerRange);
stream.read(&mUsesPointSize);
unsigned int size; unsigned int size;
stream.read(&size); stream.read(&size);
...@@ -1813,6 +1814,7 @@ bool ProgramBinary::save(void* binary, GLsizei bufSize, GLsizei *length) ...@@ -1813,6 +1814,7 @@ bool ProgramBinary::save(void* binary, GLsizei bufSize, GLsizei *length)
stream.write(mUsedVertexSamplerRange); stream.write(mUsedVertexSamplerRange);
stream.write(mUsedPixelSamplerRange); stream.write(mUsedPixelSamplerRange);
stream.write(mUsesPointSize);
stream.write(mUniforms.size()); stream.write(mUniforms.size());
for (unsigned int i = 0; i < mUniforms.size(); ++i) for (unsigned int i = 0; i < mUniforms.size(); ++i)
......
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