Commit 7dca1866 by Geoff Lang

Initialize the vertex current value data.

TRAC #23619 Signed-off-by: Nicolas Capens Signed-off-by: Shannon Woods Author: Geoff Lang
parent d21656c1
#define MAJOR_VERSION 2 #define MAJOR_VERSION 2
#define MINOR_VERSION 0 #define MINOR_VERSION 0
#define BUILD_VERSION 0 #define BUILD_VERSION 0
#define BUILD_REVISION 1999 #define BUILD_REVISION 2000
#define STRINGIFY(x) #x #define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x) #define MACRO_STRINGIFY(x) STRINGIFY(x)
......
...@@ -127,6 +127,12 @@ Context::Context(int clientVersion, const gl::Context *shareContext, rx::Rendere ...@@ -127,6 +127,12 @@ Context::Context(int clientVersion, const gl::Context *shareContext, rx::Rendere
mState.blend.colorMaskBlue = true; mState.blend.colorMaskBlue = true;
mState.blend.colorMaskAlpha = true; mState.blend.colorMaskAlpha = true;
const GLfloat defaultFloatValues[] = { 0.0f, 0.0f, 0.0f, 1.0f };
for (int attribIndex = 0; attribIndex < MAX_VERTEX_ATTRIBS; attribIndex++)
{
mState.vertexAttribCurrentValues[attribIndex].setFloatValues(defaultFloatValues);
}
if (shareContext != NULL) if (shareContext != NULL)
{ {
mResourceManager = shareContext->mResourceManager; mResourceManager = shareContext->mResourceManager;
......
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