summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_common/evas_gl_shader.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-01-19 16:26:37 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-01-19 18:18:29 +0900
commita2ef5f7cc5cb827fa68fae66706c31c65d5e0ef5 (patch)
tree0bfb064371939139b568802d8c4135c584cf347d /src/modules/evas/engines/gl_common/evas_gl_shader.c
parent7832bab2533afa07afc434074243933c5f37d020 (diff)
Evas GL: Also fix surface cap cache
This follows the fix in eina_file_mkstemp. Not sure how it could even work before. @fix
Diffstat (limited to '')
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_shader.c6
1 files changed, 3 insertions, 3 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 2b7fa42681..6156503bfd 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_shader.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_shader.c
@@ -243,7 +243,7 @@ _evas_gl_common_shader_binary_save(Evas_GL_Shared *shared)
243 char bin_dir_path[PATH_MAX]; 243 char bin_dir_path[PATH_MAX];
244 char bin_file_path[PATH_MAX]; 244 char bin_file_path[PATH_MAX];
245 char tmp_file_name[PATH_MAX]; 245 char tmp_file_name[PATH_MAX];
246 int tmpfd = -1, res = 0, copy; 246 int tmpfd = -1, copy;
247 Eina_Tmpstr *tmp_file_path = NULL; 247 Eina_Tmpstr *tmp_file_path = NULL;
248 Eet_File *ef = NULL; 248 Eet_File *ef = NULL;
249 Evas_GL_Program *p; 249 Evas_GL_Program *p;
@@ -255,8 +255,8 @@ _evas_gl_common_shader_binary_save(Evas_GL_Shared *shared)
255 255
256 if (!evas_gl_common_file_cache_dir_check(bin_dir_path, sizeof(bin_dir_path))) 256 if (!evas_gl_common_file_cache_dir_check(bin_dir_path, sizeof(bin_dir_path)))
257 { 257 {
258 res = evas_gl_common_file_cache_mkpath(bin_dir_path); 258 if (!evas_gl_common_file_cache_mkpath(bin_dir_path))
259 if (!res) return 0; /* we can't make directory */ 259 return 0; /* we can't make directory */
260 } 260 }
261 261
262 copy = evas_gl_common_file_cache_file_check(bin_dir_path, "binary_shader", bin_file_path, 262 copy = evas_gl_common_file_cache_file_check(bin_dir_path, "binary_shader", bin_file_path,