summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2019-09-19 13:39:48 +0900
committerHermet Park <hermetpark@gmail.com>2019-09-19 13:42:22 +0900
commitcdfe9463589a5a2aac3344161bb6c6bba81af3a8 (patch)
treea2e94e1c00eeff7fe7394345a4978be9a27b7c6a /src/modules
parentaaa199e2d42ee90d9dd463d6b31a6873b07c0323 (diff)
evas gl: remove unnecessary null check.
If we check reference validation, the rest of other usage should keep the reference check as well. Remove it since gl prorgram must be valid always here to shutdown the static analyzer reporting this suspicous logic.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_context.c3
1 files changed, 1 insertions, 2 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 c1f7d985b6..bf7e5c1524 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_context.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_context.c
@@ -3769,8 +3769,7 @@ shader_array_flush(Evas_Engine_GL_Context *gc)
3769 pipe_done++; 3769 pipe_done++;
3770 gc->flushnum++; 3770 gc->flushnum++;
3771 3771
3772 GLERRV("<flush err>"); 3772 if (prog != gc->state.current.prog)
3773 if (prog && (prog != gc->state.current.prog))
3774 { 3773 {
3775 glUseProgram(prog->prog); 3774 glUseProgram(prog->prog);
3776 if (prog->reset) 3775 if (prog->reset)