From cdfe9463589a5a2aac3344161bb6c6bba81af3a8 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Thu, 19 Sep 2019 13:39:48 +0900 Subject: [PATCH] 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. --- src/modules/evas/engines/gl_common/evas_gl_context.c | 3 +-- 1 file changed, 1 insertion(+), 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) pipe_done++; gc->flushnum++; - GLERRV(""); - if (prog && (prog != gc->state.current.prog)) + if (prog != gc->state.current.prog) { glUseProgram(prog->prog); if (prog->reset)