From 03224f59297f14100eee95ed57368631ae325196 Mon Sep 17 00:00:00 2001 From: sunghyun kim Date: Fri, 21 Jul 2017 16:24:50 +0900 Subject: [PATCH] [evas_gl] update shader when compiling new shader if new shader is compiled, it will be saved after shutdown. because of this, shader is compiled 2~3 times in some case. so add some code for this problem. 1. close & reopen shader before checking shader file. 2. update shader file when application compile new shader Change-Id: I93f0f5c46d99910b7b794dcfefba70d993b2905d --- src/modules/evas/engines/gl_common/evas_gl_shader.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/evas/engines/gl_common/evas_gl_shader.c b/src/modules/evas/engines/gl_common/evas_gl_shader.c index eecb067..c433493 100644 --- a/src/modules/evas/engines/gl_common/evas_gl_shader.c +++ b/src/modules/evas/engines/gl_common/evas_gl_shader.c @@ -1017,6 +1017,9 @@ evas_gl_common_shader_program_get(Evas_Engine_GL_Context *gc, } } p = evas_gl_common_shader_generate_and_compile(gc->shared, flags); + + //save shader after compile + evas_gl_common_shaders_flush(gc->shared); if (!p) return NULL; } end: -- 2.7.4