evas gl: remove unnecessary null check. 01/214201/1
authorHermet Park <hermetpark@gmail.com>
Thu, 19 Sep 2019 04:39:48 +0000 (13:39 +0900)
committerHermet Park <hermetpark@gmail.com>
Thu, 19 Sep 2019 04:43:19 +0000 (13:43 +0900)
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.

Change-Id: Ia23a5e8d7325fd8aec2d21de9a5f995dfc81c576

src/modules/evas/engines/gl_common/evas_gl_context.c

index f97a712..7224e5c 100644 (file)
@@ -4054,8 +4054,7 @@ _orig_shader_array_flush(Evas_Engine_GL_Context *gc)
         pipe_done++;
         gc->flushnum++;
 
-        GLERRV("<flush err>");
-        if (prog && (prog != gc->state.current.prog))
+        if (prog != gc->state.current.prog)
           {
              GL_TH(glUseProgram, prog->prog);
              if (prog->reset)