Fix a render manager bug
authorHeeyong Song <heeyong.song@samsung.com>
Thu, 17 Oct 2013 08:03:53 +0000 (17:03 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Thu, 17 Oct 2013 08:03:53 +0000 (17:03 +0900)
Change-Id: Ibebd20524bcfaaaf7e0e9cb8a3708c65642bdef2

src/ui/animations/FUiAnim_GlRenderManager.cpp

index 7a0a625..15f064e 100644 (file)
@@ -509,16 +509,6 @@ _GlRenderManager::~_GlRenderManager(void)
        pthread_join(__threadInfo, NULL);
 
        delete [] __pRenderQueue;
-
-#ifndef VE_USE_GL_MULTI_CONTEXT
-       delete __pColorShader;
-       delete __pUniformColorShader;
-       delete __pTextureShader;
-       delete __pTextureOpacityShader;
-
-       _GlContext::ReleaseInstance();
-       __pGlContext = null;
-#endif
 }
 
 result
@@ -1727,6 +1717,7 @@ _GlRenderManager::RenderProc(void* pData)
                        break;
 
                case COMMAND_EXIT:
+                       PRINT("COMMAND_EXIT\n");
                        goto exit_renderer;
 
                default:
@@ -1749,6 +1740,16 @@ exit_renderer:
        pThis->__pGlContext->PopContext();
 #endif
 
+#ifndef VE_USE_GL_MULTI_CONTEXT
+       delete pThis->__pColorShader;
+       delete pThis->__pUniformColorShader;
+       delete pThis->__pTextureShader;
+       delete pThis->__pTextureOpacityShader;
+
+       _GlContext::ReleaseInstance();
+       pThis->__pGlContext = null;
+#endif
+
        {
                _AutoMutex commandLock(pThis->__commandLock);