From 0ff522aaeab96a58e8594413e2dddc67ac1aee7f Mon Sep 17 00:00:00 2001 From: Ferran Sole Date: Thu, 26 Nov 2015 14:20:26 +0000 Subject: [PATCH] Initialize vertex attribute and 2d texture caches Vertex attribute cache and bounded 2d texture caches were not being properly initialized Change-Id: I45aa9c005d950c6acbcc355945d03175c24e6656 --- dali/internal/render/gl-resources/context.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dali/internal/render/gl-resources/context.cpp b/dali/internal/render/gl-resources/context.cpp index 2112488a5..c6ad6da24 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(); } -- 2.34.1