diff options
author | jutty.lee <jutty.lee@samsung.com> | 2016-12-20 18:02:45 +0900 |
---|---|---|
committer | Haegeun Park <haegeun.park@samsung.com> | 2017-01-11 18:20:39 +0900 |
commit | 49abf8317ec8f6a97e2cea9618dd13ab73defb2d (patch) | |
tree | 4a0973f48b3e405b51b4e5385b183eac47a1e71d | |
parent | 40476f99410709786df7fe6fb1185b59e1380859 (diff) | |
download | efl-49abf8317ec8f6a97e2cea9618dd13ab73defb2d.tar.gz |
evas/gl_common: Check havestuff before threading (fix for glviewshadertest)devs/sung/evas_gl_thread
-rw-r--r-- | src/modules/evas/engines/gl_common/evas_gl_context.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/evas/engines/gl_common/evas_gl_context.c b/src/modules/evas/engines/gl_common/evas_gl_context.c index a4b158355f..402e6be748 100644 --- a/src/modules/evas/engines/gl_common/evas_gl_context.c +++ b/src/modules/evas/engines/gl_common/evas_gl_context.c @@ -3114,7 +3114,6 @@ _orig_shader_array_flush(Evas_Engine_GL_Context *gc) Eina_Bool setclip; Eina_Bool fbo = EINA_FALSE; - if (!gc->havestuff) return; gw = gc->w; gh = gc->h; if (!((gc->pipe[0].shader.surface == gc->def_surface) || @@ -3822,6 +3821,8 @@ _gl_thread_shader_array_flush(void *data) static void shader_array_flush(Evas_Engine_GL_Context *gc) { + if (!gc->havestuff) return; + if (!evas_gl_thread_enabled()) { _orig_shader_array_flush(gc); |