summaryrefslogtreecommitdiff
path: root/src/modules/evas
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-01-20 20:33:55 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-01-20 20:33:55 +0900
commit3dcd903a537e29342121c23370cac4219af805c4 (patch)
tree82aa1d16d3903a732ebcaf650ca2d6050c68cd9b /src/modules/evas
parentebc3b88d099e10bd1cef8aa07ad0875c364101bb (diff)
Evas: Avoid saving the shaders cache at every shutdown
Check the right flag.
Diffstat (limited to 'src/modules/evas')
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_shader.c4
1 files changed, 2 insertions, 2 deletions
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 ebee5880fe..61ede1de55 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_shader.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_shader.c
@@ -637,8 +637,8 @@ evas_gl_common_shader_program_shutdown(Evas_GL_Shared *shared)
637{ 637{
638 if (!shared) return; 638 if (!shared) return;
639 639
640 if (shared->info.bin_program) 640 if (shared->needs_shaders_flush)
641 _evas_gl_common_shader_binary_save(shared); 641 evas_gl_common_shaders_flush(shared);
642 642
643 if (shared->shaders_cache) 643 if (shared->shaders_cache)
644 { 644 {