Vertex attribute cache and bounded 2d texture caches were not being properly initialized
Change-Id: I45aa9c005d950c6acbcc355945d03175c24e6656
// EXTERNAL INCLUDES
#include <algorithm>
// EXTERNAL INCLUDES
#include <algorithm>
// INTERNAL INCLUDES
#include <dali/public-api/common/constants.h>
// INTERNAL INCLUDES
#include <dali/public-api/common/constants.h>
// reset viewport, this will be set to something useful when rendering
mViewPort.x = mViewPort.y = mViewPort.width = mViewPort.height = 0;
// reset viewport, this will be set to something useful when rendering
mViewPort.x = mViewPort.y = mViewPort.width = mViewPort.height = 0;
+ //Initialze vertex attribute cache
+ memset( &mVertexAttributeCachedState, 0, sizeof(mVertexAttributeCachedState) );
+ memset( &mVertexAttributeCurrentState, 0, sizeof(mVertexAttributeCurrentState) );
+
+ //Initialize bound 2d texture cache
+ memset( &mBound2dTextureId, 0, sizeof(mBound2dTextureId) );
+
mFrameBufferStateCache.Reset();
}
mFrameBufferStateCache.Reset();
}