From: Ferran Sole Date: Thu, 26 Nov 2015 14:20:26 +0000 (+0000) Subject: Initialize vertex attribute and 2d texture caches X-Git-Tag: dali_1.1.12~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0ff522aaeab96a58e8594413e2dddc67ac1aee7f;p=platform%2Fcore%2Fuifw%2Fdali-core.git Initialize vertex attribute and 2d texture caches Vertex attribute cache and bounded 2d texture caches were not being properly initialized Change-Id: I45aa9c005d950c6acbcc355945d03175c24e6656 --- diff --git a/dali/internal/render/gl-resources/context.cpp b/dali/internal/render/gl-resources/context.cpp index 2112488..c6ad6da 100644 --- a/dali/internal/render/gl-resources/context.cpp +++ b/dali/internal/render/gl-resources/context.cpp @@ -20,6 +20,7 @@ // EXTERNAL INCLUDES #include +#include // INTERNAL INCLUDES #include @@ -237,6 +238,13 @@ void Context::InitializeGlState() // 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(); }